Module: ActionController::Redirecting::ClassMethods
- Defined in:
- lib/action_controller/metal/redirecting.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#allowed_redirect_hosts=(hosts) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/action_controller/metal/redirecting.rb', line 37 def allowed_redirect_hosts=(hosts) hosts = hosts.dup.freeze self._allowed_redirect_hosts = hosts self. = if hosts.present? ActionDispatch::HostAuthorization::Permissions.new(hosts) end end |