Permalink
Browse files

Refinery::Page may not always be defined.

  • Loading branch information...
1 parent 1b6b0e8 commit 2abd15b5b4f35b111dd89bfbfdfccd24cc4acf16 @parndt parndt committed Oct 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/refinerycms-search.rb
@@ -9,7 +9,7 @@ class << self
attr_accessor :searchable_models
def searchable_models
- @searchable_models ||= [Refinery::Page]
+ @searchable_models ||= [(::Refinery::Page if defined?(::Refinery::Page))]
end
end
end

0 comments on commit 2abd15b

Please sign in to comment.