ignored rails --environment

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 5.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              fgarcia
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: