Class: RoundhouseUi::SnapshotsController
Constant Summary
ApplicationController::AUDIT_VERBS
Instance Method Summary
collapse
#redirect_to
Instance Method Details
#destroy ⇒ Object
14
15
16
17
|
# File 'app/controllers/roundhouse_ui/snapshots_controller.rb', line 14
def destroy
RoundhouseUi::Snapshots.delete(params[:id])
redirect_to snapshots_path, notice: "Snapshot deleted."
end
|
#index ⇒ Object
5
6
7
|
# File 'app/controllers/roundhouse_ui/snapshots_controller.rb', line 5
def index
@snapshots = RoundhouseUi::Snapshots.all
end
|
#restore ⇒ Object
9
10
11
12
|
# File 'app/controllers/roundhouse_ui/snapshots_controller.rb', line 9
def restore
count = RoundhouseUi::Snapshots.restore(params[:id])
redirect_to snapshots_path, notice: "Restored #{count} job(s) to their queue."
end
|