Created
December 17, 2012 17:01
-
-
Save cgallagher/4319845 to your computer and use it in GitHub Desktop.
check it all
This file contains 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 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