Permalink
Browse files

Fix the error 'Could not find generator refinery:search' at refineryc…

…ms v2.0.5
  • Loading branch information...
Matho committed Jul 5, 2012
1 parent 004f63b commit 6b802e37cb1bea2f117589b420df3e2ce8cdaba3
Showing with 4 additions and 1 deletion.
  1. +1 −1 lib/refinery/search.rb
  2. +3 −0 lib/refinery/search/engine.rb
View
@@ -1,7 +1,7 @@
require "refinerycms-core"
module Refinery
- autoload :SearchGenerator, File.expand_path('../generators/refinery/search_generator', __FILE__)
+ autoload :SearchGenerator, 'generators/refinery/search_generator'
module Search
require "refinery/search/engine"
@@ -3,6 +3,9 @@ module Search
class Engine < Rails::Engine
include Refinery::Engine
+ isolate_namespace Refinery
+ engine_name :refinery_search
+
initializer "register refinery_search plugin" do
Refinery::Plugin.register do |plugin|
plugin.name = 'refinery_search'

0 comments on commit 6b802e3

Please sign in to comment.