Class: Workarea::Admin::ChangesetsController

Inherits:
ApplicationController show all
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

#most_visited

Instance Method Details

#destroyObject



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

#indexObject



9
10
# File 'app/controllers/workarea/admin/changesets_controller.rb', line 9

def index
end