123456789_123456789_123456789_123456789_123456789_

Module: Arel::Nodes::FetchAttribute

Do not use. This module is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: activerecord/lib/arel/nodes/binary.rb

Instance Method Summary

Instance Method Details

#fetch_attribute

[ GitHub ]

  
# 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