Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Let the model require acts_as_indexed.

  • Loading branch information...
commit 633576a318adb2104d7654a0c955b92d5ef0eb36 1 parent 37e592a
Philip Arndt authored
Showing with 3 additions and 2 deletions.
  1. +3 −1 app/models/refinery/setting.rb
  2. +0 −1  lib/refinery/settings.rb
4 app/models/refinery/setting.rb
View
@@ -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
1  lib/refinery/settings.rb
View
@@ -1,5 +1,4 @@
require 'refinerycms-core'
-require 'acts_as_indexed'
module Refinery
autoload :SettingsGenerator, 'generators/refinery/settings_generator'
Please sign in to comment.
Something went wrong with that request. Please try again.