Skip to content

Instantly share code, notes, and snippets.

@xxx
Created November 19, 2010 08:30
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xxx/706255 to your computer and use it in GitHub Desktop.
Save xxx/706255 to your computer and use it in GitHub Desktop.
if Rails.env.production?
module OmniAuth
module Strategy
def full_host
uri = URI.parse(request.url)
uri.path = ''
uri.query = nil
uri.port = (uri.scheme == 'https' ? 443 : 80)
uri.to_s
end
end
end
end
@originalhat
Copy link

+1

@coorasse
Copy link

coorasse commented Dec 7, 2014

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment