Permalink
Browse files

check fb_canvas? in redirect_to_with_signed_request

  • Loading branch information...
1 parent 6db6718 commit 1753673acf4afd91a1e02b9466d355dbe9e5c5fc @ahmadeeva-su ahmadeeva-su committed Mar 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 1753673

Please sign in to comment.