Module | Sequel::Plugins::AfterInitialize |
In: |
lib/sequel/plugins/after_initialize.rb
|
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