Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (26 sloc) 713 Bytes
module Refinery
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'
plugin.version = 2.0
plugin.hide_from_menu = true
end
end
config.to_prepare do
module ::Refinery
class << self
attr_accessor :searchable_models
def searchable_models
@searchable_models ||= [(Refinery::Page if defined?(Refinery::Page))]
end
end
end
end
end
end
end
Something went wrong with that request. Please try again.