Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #5 from gajeev/master

added rewrite_cache to after_destroy
  • Loading branch information...
commit 8944cbf0326994d14fdaa62003fc453becd5d3af 2 parents 32aefed + c3207dd
@ugisozols ugisozols authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 app/models/refinery/setting.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.