lib/phlex/rails/csv.rb in phlex-rails-1.2.2 vs lib/phlex/rails/csv.rb in phlex-rails-2.0.0.beta1

- old
+ new

@@ -2,14 +2,14 @@ module Phlex module Rails module CSV module Overrides - def each_item(&block) - return super unless collection.is_a?(ActiveRecord::Relation) + def each_item(&) + return super unless ActiveRecord::Relation === collection return super unless collection.arel.orders.empty? - collection.find_each(&block) + collection.find_each(&) end end end end end