Drop redirect_back_or_to helper

This is a thing in ActionController by now
This commit is contained in:
Henne Vogelsang 2022-02-15 13:30:35 +01:00
parent b76102aa69
commit 0fb080441a
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6

View file

@ -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