Module: ActiveScaffold::Actions::Update

Defined in:
lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/update.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/update.rb', line 3

def self.included(base)
  base.before_filter :update_authorized_filter, :only => [:edit, :update]
  base.verify :method => [:post, :put],
              :only => :update,
              :redirect_to => { :action => :index }
end

Instance Method Details

#editObject



10
11
12
13
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/update.rb', line 10

def edit
  do_edit
  respond_to_action(:edit)
end

#updateObject



15
16
17
18
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/update.rb', line 15

def update
  do_update
  respond_to_action(:update)
end

#update_columnObject

for inline (inlist) editing



21
22
23
24
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/actions/update.rb', line 21

def update_column
  do_update_column
  render :action => 'update_column'
end