Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #22 from Matho/2-0-stable

Fix for 'Could not find generator refinery:search' at v2.0.5 + added slovak locale
  • Loading branch information...
commit 41cc12a14af66c9154c690f9b9c7c322f6357ffb 2 parents 004f63b + 0be0990
@ugisozols ugisozols authored
View
10 config/locales/sk.yml
@@ -0,0 +1,10 @@
+sk:
+ refinery:
+ plugins:
+ refinerycms_search:
+ title: Hľadať
+ description: Extra spôsob vyhľadávania pre Refinery CMS
+ search:
+ show:
+ search_results_for: Výsledok vyhľadávania pre '%{what}'
+
View
2  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"
View
3  lib/refinery/search/engine.rb
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.