Skip to content

Commit

Permalink
Work with Rails 2.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ivey committed Aug 13, 2010
1 parent a9e9b85 commit fb6a16d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tweet-button.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def tweet_button(options = {})
# Merge user specified overrides into defaults, then convert those to data-* attrs
params = options_to_data_params(default_tweet_button_options.merge(options))

html = ''.html_safe
html = ''

unless @widgetized
html << tweet_widgets_js_tag
Expand All @@ -31,7 +31,7 @@ def default_tweet_button_options

def tweet_widgets_js_tag
@widgetized = true
'<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>'.html_safe
'<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>'
end

def custom_tweet_button(text = 'Tweet', options = {}, html_options = {})
Expand All @@ -52,4 +52,4 @@ def options_to_data_params(opts)
def options_to_query_string(opts)
opts.map{|k,v| "#{CGI.escape(k.to_s)}=#{CGI.escape(v)}"}.join("&")
end
end
end

0 comments on commit fb6a16d

Please sign in to comment.