# File lib/arel/algebra/relations/relation.rb, line 185 def position_of(attribute) @position_of ||= {} return @position_of[attribute] if @position_of.key? attribute @position_of[attribute] = attributes.index(attributes[attribute]) end