Flowdock
method

allows?

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: Permissions
allows?(host) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/middleware/host_authorization.rb, line 22
      def allows?(host)
        @hosts.any? do |allowed|
          allowed === host
        rescue
          # IPAddr#=== raises an error if you give it a hostname instead of
          # IP. Treat similar errors as blocked access.
          false
        end
      end
Register or log in to add new notes.