Permalink
Browse files

Don't rewrite the method if it was passed using _method attribute

  • Loading branch information...
1 parent 7ff18b3 commit 0ad62661efe03ecbe1552afd734088d719a65d5f @dekart committed Jun 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/facebooker2/rack/post_canvas.rb
@@ -12,8 +12,8 @@ def initialize(app)
def call(env)
request = Request.new(env)
- if request.POST['signed_request']
- env["REQUEST_METHOD"] = 'GET'
+ if request.POST['signed_request'] && request.params['_method'].blank?
+ env['REQUEST_METHOD'] = 'GET'
end
return @app.call(env)

0 comments on commit 0ad6266

Please sign in to comment.