Module: MongoMapper::Plugins::Callbacks
- Defined in:
- lib/mongo_mapper/plugins/callbacks.rb,
lib/mongo_mapper/plugins/callbacks.rb
Overview
Rails 3 stuff
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.configure(model) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/mongo_mapper/plugins/callbacks.rb', line 6 def self.configure(model) model.class_eval do extend ActiveModel::Callbacks define_model_callbacks :create, :save, :update, :destroy, :validation, :validation_on_create, :validation_on_update end end |