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

Model.with(database: "something").all throws LocalJumpError: no block given

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 5.4.0
    • Affects Version/s: 6.0.0
    • Component/s: None
    • None

      A month ago, I was able to do:

      Agent.with(database: database_name).all.each do |a|

      Now it is saying:

      timeline(dev)> Agent.with(database: "somename").all
      LocalJumpError: no block given (yield)
      from /usr/local/lib/ruby/gems/2.3.0/bundler/gems/mongoid-4079e2856143/lib/mongoid/clients/options.rb:97:in `with'

      Any ideas?

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            hackeron Roman Gaufman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: