Class: DomainRouting::SSL

Inherits:
Object
  • Object
show all
Defined in:
lib/domain_routing/routing_additions.rb

Class Method Summary collapse

Class Method Details

.matches?(request) ⇒ Boolean

Returns:

  • (Boolean)


83
84
85
86
# File 'lib/domain_routing/routing_additions.rb', line 83

def self.matches?(request)
  return true if DomainRouting::Config.act_as_ssl
  request.ssl?
end