Module: ActiveScaffold::Actions::CommonSearch
- Defined in:
- lib/active_scaffold/actions/common_search.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/active_scaffold/actions/common_search.rb', line 3 def self.included(base) return if base < InstanceMethods base.send :include, InstanceMethods base.before_action :search_authorized_filter, :only => :show_search base.before_action :store_search_params_into_session, :only => [:index] base.before_action :do_search, :only => [:index] base.helper_method :search_params end |