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

Regression issue with `rails g mongoid:config` in 3.0.8

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.0.10
    • Affects Version/s: None
    • Component/s: None

      Version 3.0.8 introduces a regression issue that did not happen with 3.0.6. Calling rails g mongoid:config in a new application now results in an error. It's always reproducible on my machine. Here is a simple test case:

      $ rails new test_mongoid -O --skip-bundle
      ...
      $ cd test_mongoid
      $ echo "gem 'mongoid', '3.0.8'" >> Gemfile
      $ bundle install
      $ rails g mongoid:config
      .../mongoid-3.0.8/lib/mongoid/sessions/factory.rb:61:in 'create_session':  (Mongoid::Errors::NoSessionsConfig)
      Problem:
        No sessions configuration provided.
      ...
      	from .../mongoid-3.0.8/lib/mongoid/sessions/factory.rb:43:in 'default'
      	from .../mongoid-3.0.8/lib/mongoid/sessions.rb:109:in 'default'
      	from .../mongoid-3.0.8/lib/mongoid.rb:124:in 'default_session'
      	from .../mongoid-3.0.8/lib/mongoid/railtie.rb:84:in 'block (2 levels) in <class:Railtie>'
      ...
      

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

              Created:
              Updated:
              Resolved: