Skip to content

Commit

Permalink
Fix the error 'Could not find generator refinery:search' at refineryc…
Browse files Browse the repository at this point in the history
…ms v2.0.5
  • Loading branch information
Matho committed Jul 5, 2012
1 parent 004f63b commit 6b802e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/refinery/search.rb
@@ -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"
Expand Down
3 changes: 3 additions & 0 deletions lib/refinery/search/engine.rb
Expand Up @@ -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'
Expand Down

0 comments on commit 6b802e3

Please sign in to comment.