lib/mongo_mapper/plugins/callbacks.rb in mongo_mapper-0.9.1 vs lib/mongo_mapper/plugins/callbacks.rb in mongo_mapper-0.9.2

- old
+ new

@@ -3,14 +3,9 @@ module Plugins module Callbacks extend ActiveSupport::Concern module InstanceMethods - def valid?(context = nil) - context ||= (new_record? ? :create : :update) - super(context) && errors.empty? - end - def destroy run_callbacks(:destroy) { super } end private