module RouterExtensions::Subdomain

Public Instance Methods

subdomain(name) { || ... } click to toggle source
# File lib/router_extensions/subdomain.rb, line 3
def subdomain(name)
  return yield unless name

  constraints subdomain: name do
    yield
  end
end