mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
c54392872f
- hacked in default engine for scalars -- BAD
17 lines
No EOL
454 B
Ruby
17 lines
No EOL
454 B
Ruby
module ActiveRelation
|
|
class Compound < Relation
|
|
attr_reader :relation
|
|
delegate :joins, :selects, :orders, :groupings, :table_sql, :inserts, :limit,
|
|
:offset, :name, :alias, :aggregation?, :alias?, :prefix_for, :column_for,
|
|
:hash, :engine,
|
|
:to => :relation
|
|
|
|
def attributes
|
|
relation.attributes.collect { |a| a.bind(self) }
|
|
end
|
|
|
|
def qualify
|
|
descend(&:qualify)
|
|
end
|
|
end
|
|
end |