Skip to content

Commit

Permalink
Grab the first attribute that is a string, not just the first attribu…
Browse files Browse the repository at this point in the history
…te, as the dashboard activity reporter
  • Loading branch information
joemsak authored and parndt committed Aug 5, 2010
1 parent 3ddbeba commit 98442ef
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -2,7 +2,7 @@
plugin.name = "<%= class_name.pluralize.underscore.downcase %>"
plugin.activity = {
:class => <%= class_name %><% if attributes.first.name != "title" %>,
:title => '<%= attributes.first.name %>'
:title => '<%= attributes.select { |a| a.type.to_s == "string" }.first.name %>'
<% end %>}

plugin.directory = directory # tell refinery where this plugin is located
Expand Down

0 comments on commit 98442ef

Please sign in to comment.