module Arel::Attributes
Public Class Methods
for(column)
click to toggle source
Factory method to wrap a raw database column
to an Arel Attribute.
# File lib/arel/attributes.rb, line 7 def self.for column case column.type when :string, :text, :binary then String when :integer then Integer when :float then Float when :decimal then Decimal when :date, :datetime, :timestamp, :time then Time when :boolean then Boolean else Undefined end end