mmangino-facebooker 1.0.14 → 1.0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,7 +39,7 @@ module Facebooker
39
39
  end
40
40
  def fb_login_and_redirect(url)
41
41
  js = update_page do |page|
42
- page.call "FB.Connect.logoutAndRedirect",url
42
+ page.redirect_to url
43
43
  end
44
44
  content_tag("fb:login-button",nil,:onlogin=>js)
45
45
  end
@@ -993,7 +993,7 @@ class RailsHelperTest < Test::Unit::TestCase
993
993
  end
994
994
 
995
995
  def test_fb_login_and_redirect
996
- assert_equal @h.fb_login_and_redirect("/path"),"<fb:login-button onlogin=\"FB.Connect.logoutAndRedirect(&quot;/path&quot;);\"></fb:login-button>"
996
+ assert_equal @h.fb_login_and_redirect("/path"),"<fb:login-button onlogin=\"window.location.href = &quot;/path&quot;;\"></fb:login-button>"
997
997
  end
998
998
 
999
999
  def test_fb_logout_link
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mmangino-facebooker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Fowler