Created
January 3, 2015 12:29
-
-
Save thangngoc89/f5c749b686ba7a86dd1a to your computer and use it in GitHub Desktop.
Discourse Payload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def to_url(base_url=nil) | |
base = "#{base_url || sso_url}" | |
"#{base}#{base.include?('?') ? '&' : '?'}#{payload}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment