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_filter :delete_authorized_filter, :only => [:destroy] end |
Instance Method Details
#destroy ⇒ Object
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 end end |