lib/mebla/context.rb in mebla-1.1.6 vs lib/mebla/context.rb in mebla-1.1.7

- old
+ new

@@ -159,10 +159,10 @@ items.each do |item| if fields.is_a?(Array) # given multiple fields to index fields_values = {} fields.each do |field| if item.attributes.keys.include?(field.to_s) - fields_values.merge!({ field => item.attributes[fields.to_s] }) # attribute + fields_values.merge!({ field => item.attributes[field.to_s] }) # attribute else fields_values.merge!({ field => item.send(field) }) # method end end attrs[relation] << fields_values \ No newline at end of file