[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
|
if @event.transition_possible? :confirm
|
||||||
begin
|
begin
|
||||||
@event.confirm!
|
@event.confirm!
|
||||||
rescue InvalidTransition => e
|
rescue Transitions::InvalidTransition => e
|
||||||
redirect_to(conference_proposal_index_path(conference_id: @conference.short_title),
|
redirect_to(conference_proposal_index_path(conference_id: @conference.short_title),
|
||||||
alert: "Event was NOT confirmed: #{e.message}")
|
alert: "Event was NOT confirmed: #{e.message}")
|
||||||
return
|
return
|
||||||
|
|
@ -186,7 +186,7 @@ class ProposalController < ApplicationController
|
||||||
begin
|
begin
|
||||||
@event.restart
|
@event.restart
|
||||||
@event.save
|
@event.save
|
||||||
rescue InvalidTransition => e
|
rescue Transitions::InvalidTransition => e
|
||||||
redirect_to(conference_proposal_index_path(conference_id: @conference.short_title),
|
redirect_to(conference_proposal_index_path(conference_id: @conference.short_title),
|
||||||
alert: "Event was NOT restarted: #{e.message}")
|
alert: "Event was NOT restarted: #{e.message}")
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue