Added request_id for redirect_url #2

Merged
merged 3 commits into from Jan 8, 2013

Projects

None yet

2 participants

@janjiss
Contributor
janjiss commented Jan 8, 2013

Added request_id for redirect_url, now it is as optional argument.

@ebeigarts

I think this could have been written with less complexity -

def redirect_url(trans_id = nil)
  url = test? ? test_redirect_url : live_redirect_url
  url += "?trans_id=#{CGI.escape trans_id}" if trans_id
  url
end
@ebeigarts ebeigarts merged commit a814ac6 into ebeigarts:master Jan 8, 2013
Owner

@janjiss paldies :)

Contributor
janjiss commented Jan 8, 2013

Glad to help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment