Posted By

capitalist on 08/07/07


Tagged

rails helper


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

frankyfish
cczona
webstic


Rails helper to check if you're in dev mode.


 / Published in: Rails
 

override the boolean expression with your own conditions.

  1. def dev_mode?
  2. ENV['RAILS_ENV'] == 'development' && request.host == '127.0.0.1'
  3. end

Report this snippet  

You need to login to post a comment.