Exception: ActionController::Redirecting::OpenRedirectError
- Inherits:
-
UnsafeRedirectError
- Object
- StandardError
- UnsafeRedirectError
- ActionController::Redirecting::OpenRedirectError
- Defined in:
- lib/action_controller/metal/redirecting.rb
Instance Method Summary collapse
-
#initialize(location) ⇒ OpenRedirectError
constructor
A new instance of OpenRedirectError.
Constructor Details
#initialize(location) ⇒ OpenRedirectError
Returns a new instance of OpenRedirectError.
15 16 17 |
# File 'lib/action_controller/metal/redirecting.rb', line 15 def initialize(location) super("Unsafe redirect to #{location.to_s.truncate(100).inspect}, pass allow_other_host: true to redirect anyway.") end |