mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Drop redirect_back_or_to helper
This is a thing in ActionController by now
This commit is contained in:
parent
b76102aa69
commit
0fb080441a
1 changed files with 0 additions and 8 deletions
|
|
@ -88,14 +88,6 @@ module ApplicationHelper
|
|||
end
|
||||
end
|
||||
|
||||
def redirect_back_or_to(options = {}, response_status = {})
|
||||
if request.env['HTTP_REFERER']
|
||||
redirect_back(fallback_location: root_path)
|
||||
else
|
||||
redirect_to options, response_status
|
||||
end
|
||||
end
|
||||
|
||||
def concurrent_events(event)
|
||||
return nil unless event.scheduled? && event.program.selected_event_schedules
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue