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

Using localize with validates_uniqueness_of fails

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.1.5
    • Affects Version/s: None
    • Component/s: None
    • None

      1. 3.1.0-stable
      2. Using localize with validates_uniqueness_of fails (was working in 2.4.0-stable)

      class Example
      include Mongoid::Document
      field :name, localize: true
      validates_uniqueness_of :name
      end

      Example.create

      > NoMethodError: undefined method `inject' for nil:NilClass

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

              Created:
              Updated:
              Resolved: