Skip to content

Commit

Permalink
Make helpers work with Haml 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
szimek committed Jun 9, 2010
1 parent 81d0530 commit 133fabb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/devise_facebook_connectable/view_helpers.rb
Expand Up @@ -65,7 +65,7 @@ def facebook_sign_in_link(*args)
options.merge!(:sign_out => true) if options[:autologoutlink] && signed_in?(scope)

content_tag(:div, :class => 'facebook_connect_link sign_in') do
facebook_connect_form(scope, options.slice(:method)) <<
with_output_buffer { facebook_connect_form(scope, options.slice(:method)) } +
if options[:button]
fb_login_button('devise.facebook_connectable.sign_in();', options)
else
Expand All @@ -91,7 +91,7 @@ def facebook_sign_out_link(*args)
)

content_tag(:div, :class => 'facebook_connect_link sign_out') do
facebook_connect_form(scope, :sign_out => true, :method => :get) <<
with_output_buffer { facebook_connect_form(scope, :sign_out => true, :method => :get) } +
if options[:button]
fb_login_button('devise.facebook_connectable.sign_out();', options.merge(:autologoutlink => true))
else
Expand Down

0 comments on commit 133fabb

Please sign in to comment.