Module: Sequel::Plugins::AfterInitialize
- Defined in:
- lib/sequel/plugins/after_initialize.rb
Overview
Adds an after_initialize hook to models, called after initializing both new objects and ones loaded from the database.
Usage:
# Make all model subclasses support the after_initialize hook
Sequel::Model.plugin :after_initialize
# Make the Album class support the after_initialize hook
Album.plugin :after_initialize
Defined Under Namespace
Modules: ClassMethods, InstanceMethods