Skip to content

Commit

Permalink
check fb_canvas? in redirect_to_with_signed_request
Browse files Browse the repository at this point in the history
  • Loading branch information
tarasova-su committed Mar 23, 2012
1 parent 6db6718 commit 1753673
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/facepalm/rails/controller/redirects.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1753673

Please sign in to comment.