Module: Faalis::Dashboard::Sections::ResourceDestroy
- Extended by:
- ActiveSupport::Concern
- Included in:
- DSL
- Defined in:
- lib/faalis/dashboard/sections/resource_destroy.rb
Instance Method Summary collapse
-
#destroy ⇒ Object
The actual action method of a dashboard controller.
Instance Method Details
#destroy ⇒ Object
The actual action method of a dashboard controller
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/faalis/dashboard/sections/resource_destroy.rb', line 7 def destroy @resource = model.find(params[:id]) @resource @resource_title = t(_resource_title.singularize) before_destroy_hook(@resource) @resource.destroy return if _override_views.include? :destroy render 'faalis/dashboard/resource/destroy' end |