public
Last active

  • Download Gist
domain_helper.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11
def determine_domain(domain)
domain = domain.split(':').first # if you have to worry about ports
case domain
when 'open-dev.heroku.com' then ...
when 'open.lifechurch.tv.dev' then ...
else
...
end
end
 
determine_domain(request.env['HTTP_HOST'])

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.