Permalink
Browse files

Use global Rack

  • Loading branch information...
1 parent edf8820 commit 6b138e1376e97e11ebbc0aa1406c7ea94c72b3d5 @dekart committed Dec 27, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/facepalm/rack/post_canvas_middleware.rb
  2. +1 −1 lib/facepalm/rails/controller/oauth_access.rb
@@ -10,7 +10,7 @@ def initialize(app, options = {})
end
def call(env)
- request = Rack::Request.new(env)
+ request = ::Rack::Request.new(env)
if request.POST['signed_request'] && request.post? && request.params['_method'].blank?
env['REQUEST_METHOD'] = 'GET'
@@ -78,7 +78,7 @@ def facepalm_require_authentication(*permissions)
facepalm.oauth_client.url_for_oauth_code(
:permissions => permissions,
:callback => facepalm_oauth_endpoint_url(
- :fb_return_to => Rack::Utils.escape(return_code)
+ :fb_return_to => ::Rack::Utils.escape(return_code)
)
)
)

0 comments on commit 6b138e1

Please sign in to comment.