Files

Class/Module Index [+]

Quicksearch

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 22
def search_authorized?
  authorized_for?(:crud_type => :read)
end
search_ignore?() click to toggle source
# File lib/active_scaffold/actions/common_search.rb, line 16
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 12
def search_params
  @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
  if active_scaffold_config.store_user_settings
    active_scaffold_session_storage[:search] = params.delete :search if params[:search]
  else
    @search_params = params.delete :search
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.