--- !ruby/object:RI::ClassDescription 
attributes: []

class_methods: 
- !ruby/object:RI::MethodSummary 
  name: configure
comment: 
- !ruby/struct:SM::Flow::P 
  body: The TypecastOnLoad plugin exists because most of Sequel's database adapters don't have complete control over typecasting, and may return columns that aren't typecast correctly (with correct being defined as how the model object would typecast the same column values).
- !ruby/struct:SM::Flow::P 
  body: "This plugin modifies Model.load to call the setter methods (which typecast by default) for all columns given. You can either specify the columns to typecast on load in the plugin call itself, or afterwards using add_typecast_on_load_columns:"
- !ruby/struct:SM::Flow::VERB 
  body: "  Album.plugin :typecast_on_load, :release_date, :record_date\n  # or:\n  Album.plugin :typecast_on_load\n  Album.add_typecast_on_load_columns :release_date, :record_date\n"
- !ruby/struct:SM::Flow::P 
  body: If the database returns release_date and record_date columns as strings instead of dates, this will ensure that if you access those columns through the model object, you'll get Date objects instead of strings.
constants: []

full_name: Sequel::Plugins::TypecastOnLoad
includes: []

instance_methods: []

name: TypecastOnLoad
superclass: 
