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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 5.4.0
    • Affects Version/s: 6.0.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
              Reporter:
              Roman Gaufman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: