From 3f50d5c23719b6877124fcd9669bbf4811f4c2eb Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Mon, 21 Jan 2008 20:12:21 -0800 Subject: filling out some pending specs --- lib/active_relation/relations/compound.rb | 1 - lib/active_relation/relations/range.rb | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/active_relation/relations') 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 -- cgit v1.2.3