polish rails/convert_rails_env snippet