README.md in facemock-oauth-0.0.4 vs README.md in facemock-oauth-0.0.5
- old
+ new
@@ -37,11 +37,11 @@
end
end
$ vi config/environments/development.rb
- Facemock::OAuth::LoginHook.path = '/facebook/sign_in'
+ Facemock::OAuth::LoginHook.paths = [ '/facebook/sign_in', '/user/facebook/sign_in' ]
Facemock::OAuth::CallbackHook.path = '/users/facemock/auth/callback'
config.middleware.use Facemock::OAuth::LoginHook
config.middleware.use Facemock::OAuth::Login
config.middleware.use Facemock::OAuth::Authentication
@@ -52,10 +52,10 @@
$ vi config.ru
require 'sinatra'
require 'facemock-oauth'
- Facemock::OAuth::LoginHook.path = '/facebook/sign_in'
+ Facemock::OAuth::LoginHook.paths = [ '/facebook/sign_in', '/user/facebook/sign_in' ]
Facemock::OAuth::CallbackHook.path = '/users/facemock/auth/callback'
use Facemock::OAuth::LoginHook
use Facemock::OAuth::Login
use Facemock::OAuth::Authentication