-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
None
Mongoid ignores the environment set by rails --envionment
rails c --environment test
With the command above, my Application.config.mongoid.sessions shows that the database in use is the development one. However if I set the environment with RAILS_ENV:
RAILS_ENV="test" rails c
The test database is loaded properly