diff options
Diffstat (limited to 'lib/active_relation/relations')
-rw-r--r-- | lib/active_relation/relations/compound.rb | 1 | ||||
-rw-r--r-- | lib/active_relation/relations/range.rb | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/active_relation/relations/compound.rb b/lib/active_relation/relations/compound.rb index d71d0ffeb5..332147523e 100644 --- a/lib/active_relation/relations/compound.rb +++ b/lib/active_relation/relations/compound.rb @@ -1,7 +1,6 @@ module ActiveRelation class Compound < Relation attr_reader :relation - delegate :projections, :attributes, :attribute, :joins, :selects, :orders, :groupings, :table_sql, :inserts, :limit, :offset, :name, :alias, :aggregation?, :to => :relation diff --git a/lib/active_relation/relations/range.rb b/lib/active_relation/relations/range.rb index e8b7f4b69d..83af03fc0e 100644 --- a/lib/active_relation/relations/range.rb +++ b/lib/active_relation/relations/range.rb @@ -17,5 +17,9 @@ module ActiveRelation def offset range.begin end + + def qualify + Range.new(relation.qualify, range) + end end end
\ No newline at end of file |