1 2 3 4 5 6 7 8 9
module Arel module SymbolExtensions def to_attribute(relation) Arel::Attribute.new(relation, self) end Symbol.send(:include, self) end end