lib/ultracache/cached.rb in ultracache-0.1.0 vs lib/ultracache/cached.rb in ultracache-0.1.1
- old
+ new
@@ -19,10 +19,10 @@
include Macro
included do
extend ActiveModel::Callbacks
- define_model_callbacks :save, :destroy
+ define_model_callbacks :create, :update, :destroy
after_create :save_cache
after_update :update_cache
after_destroy :destroy_cache