Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Use global Rack

  • Loading branch information...
commit 6b138e1376e97e11ebbc0aa1406c7ea94c72b3d5 1 parent edf8820
Aleksey Dmitriev authored December 27, 2011
2  lib/facepalm/rack/post_canvas_middleware.rb
@@ -10,7 +10,7 @@ def initialize(app, options = {})
10 10
       end
11 11
 
12 12
       def call(env)
13  
-        request = Rack::Request.new(env)
  13
+        request = ::Rack::Request.new(env)
14 14
 
15 15
         if request.POST['signed_request'] && request.post? && request.params['_method'].blank?
16 16
           env['REQUEST_METHOD'] = 'GET'
2  lib/facepalm/rails/controller/oauth_access.rb
@@ -78,7 +78,7 @@ def facepalm_require_authentication(*permissions)
78 78
               facepalm.oauth_client.url_for_oauth_code(
79 79
                 :permissions => permissions,
80 80
                 :callback => facepalm_oauth_endpoint_url(
81  
-                  :fb_return_to => Rack::Utils.escape(return_code)
  81
+                  :fb_return_to => ::Rack::Utils.escape(return_code)
82 82
                 )
83 83
               )
84 84
             )

0 notes on commit 6b138e1

Please sign in to comment.
Something went wrong with that request. Please try again.