lib/muck-profiles/models/profile.rb in muck-profiles-3.1.4 vs lib/muck-profiles/models/profile.rb in muck-profiles-3.1.5

- old
+ new

@@ -37,10 +37,10 @@ if MuckProfiles.configuration.enable_solr || MuckProfiles.configuration.enable_sunspot fields = [] MuckProfiles.configuration.policy.keys.each do |key| field_name = "#{key}_fields" - fields << {field_name.to_sym, :text} + fields << {field_name.to_sym => :text} # Setup a method for each key in the policy that can generate a string of all the fields # associated with that key. acts_as_solr or sunspot will call this method. instance_eval do define_method field_name do MuckProfiles.configuration.policy[key].collect{ |attribute| self.send(attribute) }.join(' ')