method

fetch_attribute

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: Arel
fetch_attribute(value) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/arel.rb, line 42
  def self.fetch_attribute(value)
    case value
    when Arel::Nodes::Between, Arel::Nodes::In, Arel::Nodes::NotIn, Arel::Nodes::Equality, Arel::Nodes::NotEqual, Arel::Nodes::LessThan, Arel::Nodes::LessThanOrEqual, Arel::Nodes::GreaterThan, Arel::Nodes::GreaterThanOrEqual
      yield value.left.is_a?(Arel::Attributes::Attribute) ? value.left : value.right
    end
  end
Register or log in to add new notes.