Permalink
Browse files

Add method alias just because.

  • Loading branch information...
1 parent aa7731c commit d7a29a71598da4ce97591ee78531519e43eb291f @jm jm committed Aug 14, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/tweet-button.rb
View
2 lib/tweet-button.rb
@@ -34,6 +34,8 @@ def tweet_widgets_js_tag
html_safe_string('<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>')
end
+ alias_method :twitter_widgets_js_tag, :tweet_widgets_js_tag
+
def custom_tweet_button(text = 'Tweet', options = {}, html_options = {})
# This line is really long. And it makes me sad.
link_to(text, "#{TWITTER_SHARE_URL}?#{options_to_query_string(default_tweet_button_options.merge(options))}", html_options)

0 comments on commit d7a29a7

Please sign in to comment.