Module: ActiveScaffold::Actions::Update
- Defined in:
- lib/active_scaffold/actions/update.rb
Class Method Summary collapse
Instance Method Summary collapse
- #edit ⇒ Object
- #update ⇒ Object
-
#update_column ⇒ Object
for inline (inlist) editing.
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 |
# File 'lib/active_scaffold/actions/update.rb', line 3 def self.included(base) base.before_filter :update_authorized_filter, :only => [:edit, :update] base.helper_method :update_refresh_list? base.helper_method :update_columns end |
Instance Method Details
#edit ⇒ Object
9 10 11 12 |
# File 'lib/active_scaffold/actions/update.rb', line 9 def edit do_edit respond_to_action(:edit) end |
#update ⇒ Object
14 15 16 17 |
# File 'lib/active_scaffold/actions/update.rb', line 14 def update do_update respond_to_action(:update) end |
#update_column ⇒ Object
for inline (inlist) editing
20 21 22 23 |
# File 'lib/active_scaffold/actions/update.rb', line 20 def update_column do_update_column render :action => 'update_column', :locals => {:column_span_id => params[:editor_id] || params[:editorId]} end |