diff options
Diffstat (limited to 'lib/active_relation/relations/projection.rb')
-rw-r--r-- | lib/active_relation/relations/projection.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/active_relation/relations/projection.rb b/lib/active_relation/relations/projection.rb index d0c68869bd..3fb594e2bb 100644 --- a/lib/active_relation/relations/projection.rb +++ b/lib/active_relation/relations/projection.rb @@ -15,9 +15,10 @@ module ActiveRelation relation == other.relation and projections == other.projections end - - def qualify - Projection.new(relation.qualify, *projections.collect(&:qualify)) + + protected + def __collect__(&block) + Projection.new(relation.__collect__(&block), *projections.collect(&block)) end end end
\ No newline at end of file |