Module: MongoMapper::SaveWithValidation

Defined in:
lib/mongomapper/save_with_validation.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
# File 'lib/mongomapper/save_with_validation.rb', line 3

def self.included(base)
  base.class_eval do
    alias_method_chain :save, :validation
    alias_method_chain :save!, :validation
  end
end