Module: Arel::Nodes::FetchAttribute

Included in:
Between, Equality, GreaterThan, GreaterThanOrEqual, In, IsDistinctFrom, IsNotDistinctFrom, LessThan, LessThanOrEqual, NotEqual, NotIn
Defined in:
activerecord/lib/arel/nodes/binary.rb

Instance Method Summary collapse

Instance Method Details

#fetch_attributeObject



33
34
35
36
37
38
39
# File 'activerecord/lib/arel/nodes/binary.rb', line 33

def fetch_attribute
  if left.is_a?(Arel::Attributes::Attribute)
    yield left
  elsif right.is_a?(Arel::Attributes::Attribute)
    yield right
  end
end