lib/arql/ext/array.rb in arql-0.1.11 vs lib/arql/ext/array.rb in arql-0.1.12

- old
+ new

@@ -18,10 +18,10 @@ raise 'All elements must be instances of the same ActiveRecord model class' unless map(&:class).uniq.size == 1 && first.is_a?(ActiveRecord::Base) t = [] t << first.attribute_names t << nil each do |e| - t << e.attributes.values_at(*first.attribute_names) + t << e.attributes.values_at(*first.attribute_names).map(&:as_json) end t end end