Class: NoticesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/notices_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#api_request?, #welcome

Methods included from Foreman::ThreadSession::Cleaner

#clear_thread, included

Instance Method Details

#destroyObject


4
5
6
7
8
# File 'app/controllers/notices_controller.rb', line 4

def destroy
  @notice = Notice.find(params[:id])
  @notice.destroy_notice
  redirect_to :back
end