Replace constant RAILS_ENV by Rails.env
Merge pull request #1 from ryreitsma/master

Replace constant RAILS_ENV by Rails.env