Remove unecessary if
Added gem rails_12factor to avoid warnings on heroku