Permalink
Browse files

Let the model require acts_as_indexed.

  • Loading branch information...
1 parent 37e592a commit 633576a318adb2104d7654a0c955b92d5ef0eb36 @parndt committed Sep 16, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −1 app/models/refinery/setting.rb
  2. +0 −1 lib/refinery/settings.rb
View
4 app/models/refinery/setting.rb
@@ -1,3 +1,5 @@
+require 'acts_as_indexed'
+
module Refinery
class Setting < Refinery::Core::BaseModel
extend FriendlyId
@@ -25,7 +27,7 @@ class Setting < Refinery::Core::BaseModel
after_save do |setting|
setting.class.rewrite_cache
end
-
+
after_destroy do |setting|
setting.class.rewrite_cache
end
View
1 lib/refinery/settings.rb
@@ -1,5 +1,4 @@
require 'refinerycms-core'
-require 'acts_as_indexed'
module Refinery
autoload :SettingsGenerator, 'generators/refinery/settings_generator'

0 comments on commit 633576a

Please sign in to comment.