Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Backwords compatible for 2.1 [#36 state:resolved]

  • Loading branch information...
commit 00d8bc7f97b9a3113e004475b63dbf84f5397237 1 parent 3382bc4
Joshua Peek josh authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 lib/open_id_authentication.rb
5 lib/open_id_authentication.rb
@@ -154,7 +154,10 @@ def open_id_redirect_url(open_id_request, return_to = nil, method = nil)
154 154 end
155 155
156 156 def requested_url
157   - "#{request.protocol + request.host_with_port + self.class.relative_url_root.to_s + request.path}"
  157 + relative_url_root = self.class.respond_to?(:relative_url_root) ?
  158 + self.class.relative_url_root.to_s :
  159 + request.relative_url_root
  160 + "#{request.protocol + request.host_with_port + relative_url_root + request.path}"
158 161 end
159 162
160 163 def timeout_protection_from_identity_server

0 comments on commit 00d8bc7

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