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

Observers don't work with Rails 4 - Mongoid master

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Hello,

      I'm using rails 4.0-rc2 and HEAD master of mongoid, I'm unable to register any observer

      # config/application.rb
      config.mongoid.observers = :article_observer, :audit_observer
      
      # 'rails server' logs
      web/config/application.rb:28:in `<class:Application>': undefined method `observers=' for Mongoid::Config:Module (NoMethodError)
      

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

              Created:
              Updated:
              Resolved: