diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-01-21 20:12:21 -0800 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-01-21 20:12:21 -0800 |
commit | 3f50d5c23719b6877124fcd9669bbf4811f4c2eb (patch) | |
tree | 747aa417444d99d999e23a4a39fbff423eed70ca /lib | |
parent | 7f35d492372fd91cd35e7f9a2408efd64d28ccf5 (diff) | |
download | rails-3f50d5c23719b6877124fcd9669bbf4811f4c2eb.tar.gz rails-3f50d5c23719b6877124fcd9669bbf4811f4c2eb.tar.bz2 rails-3f50d5c23719b6877124fcd9669bbf4811f4c2eb.zip |
filling out some pending specs
Diffstat (limited to 'lib')
-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 |