If I remember correctly, adding an error to an AR object's attribute or :base previously prevented the object from being saved. This is not the current behavior of Active Record.
user = User.last user.errors.add :name, "name doesn't rhyme with orange" user.valid? # => true user.save # => true user = User.last user.errors.add :base, "my unique error" user.valid? # => true user.save # => true Is that an intentional change, or an accidental one? Would a patch preventing objects with errors from saving be considered? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
