Module: GroupedScope::Arish::Associations::CollectionAssociation

Extended by:
ActiveSupport::Concern
Defined in:
lib/grouped_scope/arish/associations/collection_association.rb

Instance Method Summary collapse

Instance Method Details

#association_scopeObject



8
9
10
11
12
13
14
# File 'lib/grouped_scope/arish/associations/collection_association.rb', line 8

def association_scope
  if reflection.grouped_scope?
    @association_scope ||= Associations::AssociationScope.new(self).scope if klass
  else
    super
  end
end