Skip to content

Instantly share code, notes, and snippets.

@thangngoc89
Created January 3, 2015 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thangngoc89/f5c749b686ba7a86dd1a to your computer and use it in GitHub Desktop.
Save thangngoc89/f5c749b686ba7a86dd1a to your computer and use it in GitHub Desktop.
Discourse Payload
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