Files

Class Index [+]

Quicksearch

Arel::Sql::Attributes

Public Class Methods

for(column) click to toggle source
    # File lib/arel/engines/sql/attributes.rb, line 4
 4:       def self.for(column)
 5:         case column.type
 6:         when :string    then String
 7:         when :text      then String
 8:         when :integer   then Integer
 9:         when :float     then Float
10:         when :decimal   then Decimal
11:         when :date      then Time
12:         when :datetime  then Time
13:         when :timestamp then Time
14:         when :time      then Time
15:         when :binary    then String
16:         when :boolean   then Boolean
17:         else
18:           Undefined
19:         end
20:       end
new(column, *args) click to toggle source
    # File lib/arel/engines/sql/attributes.rb, line 22
22:       def initialize(column, *args)
23:         @column = column
24:         super(*args)
25:       end

Public Instance Methods

type_cast(value) click to toggle source
    # File lib/arel/engines/sql/attributes.rb, line 27
27:       def type_cast(value)
28:         @column.type_cast(value)
29:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.