Module: Phlex::Rails::CSV::Overrides
- Defined in:
- lib/phlex/rails/csv.rb
Instance Method Summary collapse
Instance Method Details
#each_item(&block) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/phlex/rails/csv.rb', line 7 def each_item(&block) return super unless collection.is_a?(ActiveRecord::Relation) return super unless collection.arel.orders.empty? collection.find_each(&block) end |