D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
arel-6.0.4
/
lib
/
arel
/
Filename :
attributes.rb
back
Copy
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