Skip to content
Create a gist now

Instantly share code, notes, and snippets.

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.