module Sequel::Plugins::TypecastOnLoad::ClassMethods

Attributes

typecast_on_load_columns[R]

The columns to typecast on load for this model.

Public Instance Methods

add_typecast_on_load_columns(*columns) click to toggle source

Add additional columns to typecast on load for this model.

# File lib/sequel/plugins/typecast_on_load.rb, line 35
def add_typecast_on_load_columns(*columns)
  @typecast_on_load_columns.concat(columns)
end
call(values) click to toggle source

Typecast values using load_typecast when the values are retrieved from the database.

Calls superclass method
# File lib/sequel/plugins/typecast_on_load.rb, line 41
def call(values)
  super.load_typecast
end