Module: Dynabute::Joins::Dynabutable::ClassMethods
- Defined in:
- lib/dynabute/joins.rb
Instance Method Summary collapse
Instance Method Details
#join_to_fields(fields) ⇒ Object
14 15 16 17 18 |
# File 'lib/dynabute/joins.rb', line 14 def join_to_fields(fields) fields.inject(self) do |me, field| me.joins(join_source_for_field(field)) end end |