Class: Workarea::Admin::ChangesetsController
- Inherits:
-
ApplicationController
- Object
- Workarea::ApplicationController
- ApplicationController
- Workarea::Admin::ChangesetsController
- Defined in:
- app/controllers/workarea/admin/changesets_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#current_user, #find_sort, #wrap_in_view_model, wrap_in_view_model
Methods included from Publishing
#allow_publishing!, #allow_publishing?, #set_publishing_options
Methods included from Visiting
Instance Method Details
#destroy ⇒ Object
12 13 14 15 16 17 |
# File 'app/controllers/workarea/admin/changesets_controller.rb', line 12 def destroy changeset = Release::Changeset.find(params[:id]) changeset.destroy flash[:success] = t('workarea.admin.changesets.flash_messages.removed') redirect_back fallback_location: release_changesets_path(@release) end |
#index ⇒ Object
9 10 |
# File 'app/controllers/workarea/admin/changesets_controller.rb', line 9 def index end |