lib/ads/rails/action_view/base.rb in ads-rails-0.0.2 vs lib/ads/rails/action_view/base.rb in ads-rails-0.0.3

- old
+ new

@@ -4,16 +4,16 @@ module Base def google_adsense_include_tag(*args) if ::Rails.env.production? options = args.extract_options! - script = <<-SCRIPT.strip_heredoc + script = <<-SCRIPT google_ad_client = '#{options[:client]}'; google_ad_slot = '#{options[:slot]}'; google_ad_width = #{options[:width]}; google_ad_height = #{options[:height]}; SCRIPT - content_tag(:script, "\n#{script}".html_safe, :type => 'text/javascript') +"\n"+ + content_tag(:script, script.html_safe, :type => 'text/javascript') + content_tag(:script, nil, :type => 'text/javascript', :src => 'http://pagead2.googlesyndication.com/pagead/show_ads.js') end end end