Module: ActiveScaffold::Actions::Delete

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

def self.included(base)
  base.before_action :delete_authorized_filter, :only => [:destroy]
end

Instance Method Details

#destroyObject



7
8
9
10
11
12
# File 'lib/active_scaffold/actions/delete.rb', line 7

def destroy
  params.delete :destroy_action
  process_action_link_action(:destroy) do |record|
    do_destroy(record)
  end
end