diff --git a/lib/grouped_scope/arish/associations/collection_association.rb b/lib/grouped_scope/arish/associations/collection_association.rb index 57cdb2b..e61db83 100644 --- a/lib/grouped_scope/arish/associations/collection_association.rb +++ b/lib/grouped_scope/arish/associations/collection_association.rb @@ -9,7 +9,7 @@ module InstanceMethods def association_scope if reflection.grouped_scope? - @association_scope ||= GroupedScope::Arish::Associations::AssociationScope.new(self).scope if klass + @association_scope ||= Associations::AssociationScope.new(self).scope if klass else super end diff --git a/lib/grouped_scope/arish/base.rb b/lib/grouped_scope/arish/base.rb index 886081a..474a7e0 100644 --- a/lib/grouped_scope/arish/base.rb +++ b/lib/grouped_scope/arish/base.rb @@ -12,7 +12,7 @@ module Base module ClassMethods def grouped_scope(*association_names) - GroupedScope::Arish::Associations::Builder::GroupedCollectionAssociation.build(self, *association_names) + Associations::Builder::GroupedCollectionAssociation.build(self, *association_names) end end