Class: Mongoid::Relation
- Inherits:
-
Object
- Object
- Mongoid::Relation
- Defined in:
- lib/mongoid_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
39 40 41 42 43 |
# File 'lib/mongoid_to_csv.rb', line 39 def to_csv scoping do @klass.to_csv end end |