Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7032a50297
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (17 sloc) 0.58 kb
module Arel
class Compound < Relation
attr_reader :relation
hash_on :relation
delegate :joins, :join?, :inserts, :taken, :skipped, :name, :externalizable?,
:column_for, :engine, :table, :table_sql, :array,
:to => :relation
[:attributes, :wheres, :groupings, :orders].each do |operation_name|
operation = <<-OPERATION
def #{operation_name}
@#{operation_name} ||= relation.#{operation_name}.collect { |o| o.bind(self) }
end
OPERATION
class_eval operation, __FILE__, __LINE__
end
end
end
Jump to Line
Something went wrong with that request. Please try again.