lib/social_share_button/helper.rb in social-share-button-0.0.4 vs lib/social_share_button/helper.rb in social-share-button-0.0.5

- old
+ new

@@ -5,10 +5,10 @@ rel = opts[:rel] html = [] html << "<div class='social-share-button' data-title='#{title}' data-img='#{opts[:image]}'>" SocialShareButton.config.allow_sites.each do |name| - link_title = [t("social_share_button.share_to"),t("social_share_button.#{name.downcase}")].join("") + link_title = t "social_share_button.share_to", :name => t("social_share_button.#{name.downcase}") html << link_to("","#", :rel => "nofollow #{rel}", "data-site" => name, :class => "social-share-button-#{name}", :onclick => "return SocialShareButton.share(this);", :title => h(link_title)) \ No newline at end of file