Skip to content

Commit

Permalink
Merge pull request #1 from cainlevy/master
Browse files Browse the repository at this point in the history
ssl_routes fix for rails3
  • Loading branch information
cedric committed Sep 26, 2011
2 parents 6d82759 + 514c6f8 commit 7972c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ssl_routes/rails3.rb
Expand Up @@ -39,7 +39,7 @@ def determine_protocols(options)

def ensure_protocol
routes = Rails.application.routes
options = routes.recognize_path request.path, request.env
options = routes.recognize_path request.path, {:method => request.env['REQUEST_METHOD']}
current, target = determine_protocols(options)
if current != target && !request.xhr? && request.get?
flash.keep
Expand Down

0 comments on commit 7972c71

Please sign in to comment.