/ Published in: Rails
override the boolean expression with your own conditions.
Expand |
Embed | Plain Text
def dev_mode? ENV['RAILS_ENV'] == 'development' && request.host == '127.0.0.1' end
You need to login to post a comment.
