module Sequel::Plugins::PgTypecastOnLoad::ClassMethods

Attributes

pg_typecast_on_load_columns[R]

The columns to typecast on load for this model.

Public Instance Methods

add_pg_typecast_on_load_columns(*columns) click to toggle source

Add additional columns to typecast on load for this model.

# File lib/sequel/plugins/pg_typecast_on_load.rb, line 40
def add_pg_typecast_on_load_columns(*columns)
  @pg_typecast_on_load_columns.concat(columns)
end
inherited(subclass) click to toggle source

Give the subclass a copy of the columns to typecast on load.

# File lib/sequel/plugins/pg_typecast_on_load.rb, line 45
def inherited(subclass)
  super
  subclass.instance_variable_set(:@pg_typecast_on_load_columns, pg_typecast_on_load_columns.dup)
end