Module: ToApiMultiple
- Included in:
- ActiveRecord::Associations::CollectionProxy, ActiveRecord::NamedScope::Scope, ActiveRecord::Relation, Array
- Defined in:
- lib/to_api.rb
Instance Method Summary collapse
Instance Method Details
#to_api(*includes) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/to_api.rb', line 27 def to_api(*includes) map{|e| e.to_api_filters = to_api_filters if to_api_filters.any? && e.respond_to?(:to_api_filters) e.to_api(*includes) } end |