Module: ActiveScaffold::Actions::Update

Defined in:
lib/active_scaffold/actions/update.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
# File 'lib/active_scaffold/actions/update.rb', line 3

def self.included(base)
  base.before_action :update_authorized_filter, :only => %i[edit update]
  base.helper_method :update_refresh_list?
end

Instance Method Details

#editObject



8
9
10
11
# File 'lib/active_scaffold/actions/update.rb', line 8

def edit
  do_edit
  respond_to_action(:edit)
end

#updateObject



13
14
15
16
# File 'lib/active_scaffold/actions/update.rb', line 13

def update
  do_update
  respond_to_action(:update)
end

#update_columnObject

for inline (inlist) editing



19
20
21
22
# File 'lib/active_scaffold/actions/update.rb', line 19

def update_column
  do_update_column
  @column_span_id = params.delete(:editor_id) || params.delete(:editorId)
end