Module: ActiveScaffold::Actions::Search

Includes:
CommonSearch
Defined in:
lib/active_scaffold/actions/search.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
# File 'lib/active_scaffold/actions/search.rb', line 5

def self.included(base)
  base.before_filter :search_authorized_filter, :only => :show_search
  base.before_filter :store_search_params_into_session, :only => [:index]
  base.before_filter :do_search, :only => [:index]
  base.helper_method :search_params
end

Instance Method Details

#show_searchObject



12
13
14
# File 'lib/active_scaffold/actions/search.rb', line 12

def show_search
  respond_to_action(:search)
end