Added a function in application.rb under config for Heroku