Module: ActiveScaffold::Actions::Refresh
- Defined in:
- lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/refresh.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 |
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/refresh.rb', line 3 def self.included(base) base.before_filter :refresh_authorized_filter, :only => [:index, :list] end |
Instance Method Details
#refresh ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/refresh.rb', line 7 def refresh respond_to do |type| type.js do do_list render :update do |page| page[active_scaffold_content_id].replace_html render(:partial => 'list', :layout => false) end end type.html { return_to_main } end end |