1
0
Fork 1
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-24 18:05:24 +00:00
mastodon/config/initializers/open_redirects.rb

8 lines
426 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# TODO: Starting with Rails 7.0, the framework default is true for this setting.
# This location in devise redirects and we can't hook in or override:
# https://github.com/heartcombo/devise/blob/v4.9.3/app/controllers/devise/confirmations_controller.rb#L28
# When solution is found, this setting can go back to default.
Rails.application.config.action_controller.raise_on_open_redirects = false