Module: ActiveScaffold::Actions::Update

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

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) included(base)



3
4
5
6
# 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?
end

Instance Method Details

- (Object) edit



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

def edit
  do_edit
  respond_to_action(:edit)
end

- (Object) update



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

def update
  do_update
  respond_to_action(:update)
end

- (Object) update_column

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