Skip to content

Commit

Permalink
Put translates on the next line than it was being put at which fixes …
Browse files Browse the repository at this point in the history
…insta-syntax errors on generate.
  • Loading branch information
parndt committed Feb 28, 2012
1 parent 6c1640f commit 09addb9
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -2,7 +2,8 @@ module Refinery
module <%= namespacing %>
class <%= class_name %> < Refinery::Core::BaseModel
<% if table_name == namespacing.underscore.pluralize -%>self.table_name = :refinery_<%= plural_name %><% end -%>
<% if localized? %>translates <%= localized_attributes.collect{|a| ":#{a.name}"}.join(', ') %><% end %>
<% if localized? %>
translates <%= localized_attributes.map{|a| ":#{a.name}"}.join(', ') %><% end %>
<% if (string_attributes = attributes.select{ |a| a.type.to_s =~ /string|text/ }.uniq).any? %>
acts_as_indexed :fields => <%= string_attributes.map{|s| s.name.to_sym}.inspect %>

Expand Down

0 comments on commit 09addb9

Please sign in to comment.