/ 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.
capitalist on 08/07/07
3 people have marked this snippet as a favorite
override the boolean expression with your own conditions.
def dev_mode? ENV['RAILS_ENV'] == 'development' && request.host == '127.0.0.1' end
You need to login to post a comment.