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

`default_scope` should accept block instead of lambda

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0
    • Affects Version/s: None
    • Component/s: None

      default_scope should accept block like in ActiveRecord. Lambda is unneded as default_scope block cannot have any arguments anyway.

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

              Created:
              Updated:
              Resolved: