Module: Sequel::Plugins::AfterInitialize::InstanceMethods

Defined in:
lib/sequel/plugins/after_initialize.rb

Instance Method Summary collapse

Instance Method Details

#after_initializeObject

An empty after_initialize hook, so that plugins that use this can always call super to get the default behavior.



32
33
# File 'lib/sequel/plugins/after_initialize.rb', line 32

def after_initialize
end

#initialize(h = {}) ⇒ Object

Call after_initialize for new model objects.



25
26
27
28
# File 'lib/sequel/plugins/after_initialize.rb', line 25

def initialize(h={})
  super
  after_initialize
end