Methods

Class Index [+]

Quicksearch

Sequel::Plugins::DefaultsSetter::InstanceMethods

Private Instance Methods

initialize_set(h) click to toggle source

Set default values if they are not already set by the hash provided to initialize.

    # File lib/sequel/plugins/defaults_setter.rb, line 51
51:         def initialize_set(h)
52:           super
53:           model.default_values.each{|k,v| self[k] = (v.respond_to?(:call) ? v.call : v) unless values.has_key?(k)}
54:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.