Commit 6b33afd7 authored by Rafael Masoni's avatar Rafael Masoni
Browse files

Now it's possible to test Twitter Authentication locally

parent 43ddffa3
......@@ -3,4 +3,8 @@ Rails.application.config.middleware.use OmniAuth::Builder do
provider :twitter, 'OtgUJ38USbc3PnbRH1i9DA', 'sZGgzbqX3xPhzoVru6uzpIvrBwIRIQbrHVDG5CXrm8'
end
OmniAuth.config.full_host = "http://railspg.com"
if ENV['RAILS_ENV'] == "production"
OmniAuth.config.full_host = "http://railspg.com"
else
OmniAuth.config.full_host = "http://localhost:3000"
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment