Class: ActiveRecord::Relation
- Inherits:
-
Object
- Object
- ActiveRecord::Relation
- Defined in:
- lib/active_record_to_csv.rb
Overview
Define Relation#to_csv so that method_missing will not delegate to array.
Instance Method Summary collapse
Instance Method Details
#to_csv ⇒ Object
26 27 28 29 30 |
# File 'lib/active_record_to_csv.rb', line 26 def to_csv scoping do @klass.to_csv end end |