Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

allow customization of contents of twitter signup link

  • Loading branch information...
commit 55f2455af51152deea5f528a5c226eb6ba2373ca 1 parent 0cf824a
Chad Pytel authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/helpers/clearance_twitter_helper.rb
View
4 app/helpers/clearance_twitter_helper.rb
@@ -1,6 +1,6 @@
module ClearanceTwitterHelper
- def twitter_connect_button
- twitter_image_tag = image_tag('sign_in_with_twitter.png', :alt => 'Sign in using Twitter')
+ def twitter_connect_button(twitter_image_tag)
+ twitter_image_tag ||= image_tag('sign_in_with_twitter.png', :alt => 'Sign in using Twitter')
link_to twitter_image_tag, new_twitter_user_path
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.