Permalink
Browse files

Merge pull request #5 from gajeev/master

added rewrite_cache to after_destroy
  • Loading branch information...
ugisozols committed Mar 15, 2012
2 parents 32aefed + c3207dd commit 8944cbf0326994d14fdaa62003fc453becd5d3af
Showing with 4 additions and 0 deletions.
  1. +4 −0 app/models/refinery/setting.rb
@@ -25,6 +25,10 @@ class Setting < Refinery::Core::BaseModel
after_save do |setting|
setting.class.rewrite_cache
end
+
+ after_destroy do |setting|
+ setting.class.rewrite_cache
+ end
class << self
# Number of settings to show per page when using will_paginate

0 comments on commit 8944cbf

Please sign in to comment.