Module Sequel::Plugins::DefaultsSetter::ClassMethods
In: lib/sequel/plugins/defaults_setter.rb

Methods

freeze  

Attributes

default_values  [R]  The default values to set in initialize for this model. A hash with column symbol keys and default values. If the default values respond to call, it will be called to get the value, otherwise the value will be used directly. You can manually modify this hash to set specific default values, by default the ones will be parsed from the database.

Public Instance methods

Freeze default values when freezing model class

[Source]

    # File lib/sequel/plugins/defaults_setter.rb, line 52
52:         def freeze
53:           @default_values.freeze
54:           super
55:         end

[Validate]