lib/simple_model/base.rb in simple_model-1.4.2 vs lib/simple_model/base.rb in simple_model-1.4.3
- old
+ new
@@ -81,9 +81,11 @@
define_model_callbacks :save, :update, :create, :destroy
class << self
+ # a call back that runs after a call to save, update, create or destroy
+ # even if the action fails validation (helpful for extra logging)
def after_any(meth=nil)
@after_any = meth if meth
@after_any
end