Style
This commit is contained in:
parent
2e692f7ea5
commit
01086813af
37 changed files with 221 additions and 190 deletions
|
|
@ -170,8 +170,8 @@ module Admin
|
|||
def get_event
|
||||
@event = @conference.events.find_by_id(params[:id])
|
||||
if !@event
|
||||
redirect_to(admin_conference_events_path(conference_id: @conference.short_title),
|
||||
alert: 'Error! Could not find event!') && return
|
||||
flash[:error] = 'Error! Could not find event!'
|
||||
redirect_to admin_conference_events_path(conference_id: @conference.short_title) && return
|
||||
end
|
||||
@event
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue