mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
[Bugfix] Added missing namespace for TransitionsException
This commit is contained in:
parent
a88f7c168f
commit
2254c2e359
1 changed files with 2 additions and 2 deletions
|
|
@ -162,7 +162,7 @@ class ProposalController < ApplicationController
|
|||
if @event.transition_possible? :confirm
|
||||
begin
|
||||
@event.confirm!
|
||||
rescue InvalidTransition => e
|
||||
rescue Transitions::InvalidTransition => e
|
||||
redirect_to(conference_proposal_index_path(conference_id: @conference.short_title),
|
||||
alert: "Event was NOT confirmed: #{e.message}")
|
||||
return
|
||||
|
|
@ -186,7 +186,7 @@ class ProposalController < ApplicationController
|
|||
begin
|
||||
@event.restart
|
||||
@event.save
|
||||
rescue InvalidTransition => e
|
||||
rescue Transitions::InvalidTransition => e
|
||||
redirect_to(conference_proposal_index_path(conference_id: @conference.short_title),
|
||||
alert: "Event was NOT restarted: #{e.message}")
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue