Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View domain_helper.rb
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'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.