Commit 467635b5 authored by Mathías Montossi's avatar Mathías Montossi
Browse files

Remove tasks folder

parent d90e633a
......@@ -5,13 +5,13 @@ module Ads
def google_adsense_include_tag(*args)
if ::Rails.env.production?
options = args.extract_options!
params = [
"google_ad_client = '#{options[:client]}'",
"google_ad_slot = '#{options[:slot]}'",
"google_ad_width = #{options[:width]}",
"google_ad_height = #{options[:height]}"
]
content_tag(:script, params.join('; ').html_safe, :type => 'text/javascript') +
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, script.html_safe, :type => 'text/javascript') +
content_tag(:script, nil, :type => 'text/javascript', :src => 'http://pagead2.googlesyndication.com/pagead/show_ads.js')
end
end
......
# desc "Explaining what the task does"
# task :ads_rails do
# # Task goes here
# end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment