lib/facemock/oauth/callback_hook.rb in facemock-oauth-0.0.4 vs lib/facemock/oauth/callback_hook.rb in facemock-oauth-0.0.5
- old
+ new
@@ -1,9 +1,13 @@
require 'facemock'
module Facemock
module OAuth
class CallbackHook < RackMiddleware
+ class << self
+ attr_accessor :path
+ end
+
DEFAULT_PATH = "/users/auth/callback"
@path = DEFAULT_PATH
def call(env)
if env["PATH_INFO"] == CallbackHook.path