Sha256: 9482678a2bb9096af359bb8b59f228785336b091d1851db5158661ddb2285588

Contents?: true

Size: 250 Bytes

Versions: 3

Compression:

Stored size: 250 Bytes

Contents

def on_subdomain subdomain, domain, &block
  if Rails.env.production?
    constraints subdomain: subdomain, domain: domain, &block
  elsif Rails.env.development?
    constraints subdomain: "#{subdomain}.#{domain}", domain: 'lvh.me', &block
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
masshtab_dev_tools-0.0.6 lib/masshtab_dev_tools/routes.rb
masshtab_dev_tools-0.0.5 lib/masshtab_dev_tools/routes.rb
masshtab_dev_tools-0.0.4 lib/masshtab_dev_tools/routes.rb