Skip to content

Commit

Permalink
Don't rewrite the method if it was passed using _method attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
dekart committed Jun 3, 2011
1 parent 7ff18b3 commit 0ad6266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/facebooker2/rack/post_canvas.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 0ad6266

Please sign in to comment.