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

update_attribute now returns true if the values are the same value

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

      to address the issue of:
      f = Foo.create :name => "Bob"
      f.update_attribute(:name, "Bob")

      => nil

      according to the docs, this should return true; so now it does.

            Assignee:
            Unassigned Unassigned
            Reporter:
            shawn42 Shawn Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: