blob: d11d09fbf67660be294208483df9fb35730335cf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
module ActiveRelation
class Compound < Relation
attr_reader :relation
delegate :joins, :selects, :orders, :groupings, :table_sql, :inserts, :limit,
:offset, :name, :alias, :aggregation?, :prefix_for, :aliased_prefix_for,
:to => :relation
def attributes
relation.attributes.collect { |a| a.bind(self) }
end
end
end
|