title: Hide Adsense on localhost
body: <p>I have a site built in Ruby On Rails which has many ads in different templates and views. It is hard to actualy remove each ad between tests and deployments. </p>
  
  <p>I don't know whether Google approves many impressions (even if without clicks) on localhost.</p>
  
  <p>How do you deal with this issue?</p>
  
  <p>Maybe it is a good solution to set a variable/constant available everywere to enable/disable ads easily.
  Do you think it is a good solution? If so, how do I declare a global variable for views?</p>