Skip to content

Instantly share code, notes, and snippets.

@cgallagher
Created December 17, 2012 17:01
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 cgallagher/4319845 to your computer and use it in GitHub Desktop.
Save cgallagher/4319845 to your computer and use it in GitHub Desktop.
check it all
def redirect_to_canvas_if_no_signed_request_and_not_mobile
if !mobile_device? and !request.post?()
extended_url = ""
if params
extended_url = "#{request.fullpath}"
end
redirect_to "#{Settings.facebook.canvas_url}#{extended_url}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment