Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

check fb_canvas? in redirect_to_with_signed_request #6

Merged
merged 1 commit into from

2 participants

@ahmadeeva-su

No description provided.

@dekart dekart merged commit 05621d7 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 23, 2012
  1. @ahmadeeva-su
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.