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


/ Published in: Rails
Save to your folder(s)

override the boolean expression with your own conditions.


Copy this code and paste it in your HTML
  1. def dev_mode?
  2. ENV['RAILS_ENV'] == 'development' && request.host == '127.0.0.1'
  3. end

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.