module ActiveScaffold::Actions::CommonSearch

Protected Instance Methods

search_authorized?() click to toggle source

The default security delegates to ActiveRecordPermissions. You may override the method to customize.

# File lib/active_scaffold/actions/common_search.rb, line 18
def search_authorized?
  authorized_for?(:crud_type => :read)
end
search_ignore?() click to toggle source
# File lib/active_scaffold/actions/common_search.rb, line 12
def search_ignore?
  active_scaffold_config.list.always_show_search
end
search_params() click to toggle source
# File lib/active_scaffold/actions/common_search.rb, line 8
def search_params
  active_scaffold_session_storage[:search]
end
store_search_params_into_session() click to toggle source
# File lib/active_scaffold/actions/common_search.rb, line 4
def store_search_params_into_session
  active_scaffold_session_storage[:search] = params.delete :search if params[:search]
end