Module: Alchemy::PgSearch::ControllerMethods
- Defined in:
- lib/alchemy/pg_search/controller_methods.rb
Overview
Provides full text search methods in your controller
Class Method Summary collapse
-
.included(controller) ⇒ Object
Adds a
before_action
to your controller.
Class Method Details
.included(controller) ⇒ Object
Adds a before_action
to your controller
10 11 12 13 14 |
# File 'lib/alchemy/pg_search/controller_methods.rb', line 10 def self.included(controller) controller.send(:before_action, :perform_search, only: :show) controller.send(:helper_method, :search_result_page) controller.send(:helper, Alchemy::PgSearch::SearchHelper) end |