Class: MainDomainConstraint

Inherits:
Object
  • Object
show all
Defined in:
app/routing/main_domain_constraint.rb

Instance Method Summary collapse

Instance Method Details

#matches?(request) ⇒ Boolean


2
3
4
# File 'app/routing/main_domain_constraint.rb', line 2

def matches?(request)
  request.host =~ /www\.onruby\.\w+/
end