README.rdoc in ads-rails-0.0.6 vs README.rdoc in ads-rails-0.0.8

- old
+ new

@@ -1,7 +1,11 @@ -{<img src="https://codeclimate.com/github/mattways/ads-rails.png" />}[https://codeclimate.com/github/mattways/ads-rails] {<img src="https://travis-ci.org/mattways/ads-rails.png?branch=master" alt="Build Status" />}[https://travis-ci.org/mattways/ads-rails] {<img src="https://gemnasium.com/mattways/ads-rails.png" alt="Dependency Status" />}[https://gemnasium.com/mattways/ads-rails] +=== WARNING: From version 0.0.8 and above we changed the behavior of the renderer to only being use when the environment is not production. +--- + +{<img src="https://badge.fury.io/rb/ads-rails.png" alt="Gem Version" />}[http://badge.fury.io/rb/ads-rails] {<img src="https://codeclimate.com/github/museways/ads-rails.png" />}[https://codeclimate.com/github/museways/ads-rails] {<img src="https://travis-ci.org/museways/ads-rails.png?branch=master" alt="Build Status" />}[https://travis-ci.org/museways/ads-rails] {<img src="https://gemnasium.com/museways/ads-rails.png" alt="Dependency Status" />}[https://gemnasium.com/museways/ads-rails] + = Ads Rails Adds a simple helper to create the google adsense include tag. = Install @@ -19,7 +23,7 @@ (Will only show the include tag in production unless renderer has been set) = Configuration -If you want to renderer different the placeholder, put something like this in your application.rb: - config.ads.renderer = proc { |options| tag(:img, src: "http://placehold.it/#{options[:width]}x#{options[:height]}&text=Google+AdSense") } +If you don't like the default color div in development, you can use a custom renderer: + config.ads.renderer = lamda { |options| tag(:img, src: "http://placehold.it/#{options[:width]}x#{options[:height]}&text=Google+AdSense") }