Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-3785

ignored rails --environment

    • Type: Icon: Task Task
    • Resolution: Done
    • 5.0.0
    • 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

            Assignee:
            Unassigned Unassigned
            Reporter:
            fgarcia fgarcia
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: