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

undefined method `logger=' for Mongoid::Config:Module

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

      Hey folks, could yo please look up what's up with the version 3.0.1 ? it crashes when an app tries to access the mongoid logger

      /Users/nikolay/workspace/work/theosom/config/application.rb:57:in `<class:Application>': undefined method `logger=' for Mongoid::Config:Module (NoMethodError)
      	from /Users/nikolay/workspace/work/theosom/config/application.rb:20:in `<module:TheOsom>'
      	from /Users/nikolay/workspace/work/theosom/config/application.rb:19:in `<top (required)>'
      	from /Users/nikolay/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
      	from /Users/nikolay/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
      	from /Users/nikolay/workspace/work/theosom/config/environment.rb:2:in `<top (required)>'
      	from /Users/nikolay/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
      	from /Users/nikolay/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
      	from /Users/nikolay/workspace/work/theosom/spec/spec_helper.rb:3:in `<top (required)>'
      	from /Users/nikolay/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
      	from /Users/nikolay/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
      	from /Users/nikolay/workspace/work/theosom/spec/models/image_spec.rb:1:in `<top (required)>'
      	from /Users/nikolay/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load'
      	from /Users/nikolay/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `block in load_spec_files'
      	from /Users/nikolay/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `map'
      	from /Users/nikolay/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load_spec_files'
      	from /Users/nikolay/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:22:in `run'
      	from /Users/nikolay/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'
      	from /Users/nikolay/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `block in autorun'
      

      It all worked nicely on latest 2.x versions

      Thanks

            Assignee:
            Unassigned Unassigned
            Reporter:
            MadRabbit MadRabbit [X]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: