Sha256: 25bdb417f1b7c7e2c4a6a8ed22875602d49de31061b036b447363af8ef58da58
Contents?: true
Size: 610 Bytes
Versions: 173
Compression:
Stored size: 610 Bytes
Contents
require 'arel/attributes/attribute' module Arel module Attributes ### # Factory method to wrap a raw database +column+ to an Arel Attribute. 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 end end
Version data entries
173 entries across 151 versions & 23 rubygems