Made Rails ENV conditional on Rails environment existing using controller