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

Find_or_(initialize|create)_by do not accept roles / options

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.6
    • Affects Version/s: None
    • Component/s: None
    • None

      find_or_initialize_by and find_or_create_by should accept an options hash allowing {:as => :role} and {{

      {without_protection: true}

      }}

      Related to https://github.com/rails/rails/issues/1170

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

              Created:
              Updated:
              Resolved: