Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

check fb_canvas? in redirect_to_with_signed_request

  • Loading branch information...
commit 1753673acf4afd91a1e02b9466d355dbe9e5c5fc 1 parent 6db6718
@ahmadeeva-su ahmadeeva-su authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/facepalm/rails/controller/redirects.rb
View
4 lib/facepalm/rails/controller/redirects.rb
@@ -12,8 +12,8 @@ def self.included(base)
# Overrides ActionController::Base#redirect_to to pass signed_request in flash[]
def redirect_to_with_signed_request(*args)
- flash[:signed_request] = fb_signed_request
-
+ flash[:signed_request] = fb_signed_request if fb_canvas?
+
redirect_to_without_signed_request(*args)
end
Please sign in to comment.
Something went wrong with that request. Please try again.