I am doing a project in rails, I would like to know how can I check if I am running in developer mode or production mode in code?
thank
Rails.env == "production" Rails.env == "development"
As @xoebus already mentioned, this is much better:
Rails.env.production? Rails.env.development?