59 60 61 62 63 64 65 66 67 68
# File 'lib/presenting/sorting.rb', line 59 def <<(val) if val.is_a? Hash k, v = *val.to_a.first opts = v.is_a?(Hash) ? v : {:sql => v} opts[:name] = k else opts = {:name => val} end super Field.new(opts) end