Module: Arel::Nodes::FetchAttribute

Included in:
Between, Equality, GreaterThan, GreaterThanOrEqual, In, IsDistinctFrom, IsNotDistinctFrom, LessThan, LessThanOrEqual, NotEqual, NotIn
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/arel/nodes/binary.rb

Instance Method Summary collapse

Instance Method Details

#fetch_attributeObject



33
34
35
36
37
38
39
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/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