123456789_123456789_123456789_123456789_123456789_

Module: ActionController::Redirecting::ClassMethods

Do not use. This module is for internal use only.
Relationships & Source Files
Defined in: actionpack/lib/action_controller/metal/redirecting.rb

Instance Attribute Summary

Instance Attribute Details

#allowed_redirect_hosts=(hosts) (writeonly)

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/redirecting.rb', line 24

def allowed_redirect_hosts=(hosts)
  hosts = hosts.dup.freeze
  self._allowed_redirect_hosts = hosts
  self.allowed_redirect_hosts_permissions = if hosts.present?
    ActionDispatch::HostAuthorization::Permissions.new(hosts)
  end
end