Module: ActiveScaffold::Actions::List
- Includes:
- Search
- Defined in:
- lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/list.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Search
#reset_search, #reset_search_session_info, #search_session_info, #store_params_into_search_session_info
Class Method Details
.included(base) ⇒ Object
5
6
7
|
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/list.rb', line 5
def self.included(base)
base.before_filter :list_authorized_filter, :only => [:index, :table, :update_table, :row, :list]
end
|
Instance Method Details
9
10
11
|
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/list.rb', line 9
def index
list
end
|
29
30
31
32
33
34
|
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/list.rb', line 29
def list
do_list
do_new if active_scaffold_config.list.always_show_create
@record ||= active_scaffold_config.model.new if active_scaffold_config.list.always_show_search
respond_to_action(:list)
end
|
25
26
27
|
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/list.rb', line 25
def row
render :partial => 'list_record', :locals => {:record => find_if_allowed(params[:id], :read)}
end
|
13
14
15
16
|
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/list.rb', line 13
def table
do_list
render(:action => 'list', :layout => false)
end
|
#update_table ⇒ Object
This is called when changing pages, sorts and search
19
20
21
22
|
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/list.rb', line 19
def update_table
do_list
respond_to_action(:update_table)
end
|