This project is archived and is in readonly mode.
Improved AR::Errors API to get to the Error objects
-
Lawrence Pit
where you just want to check the presence of a specific error.
what I mean is, in my specs I'd like to do:
model.error_on(:title).type.should == :invalid model.error_on(:salary).type.should == :too_lowPS. having +type+ as an attr_accessor of the Error object is not helpful.. but that's another ticket.
-
Lawrence Pit
- Assigned user cleared.
-
Lawrence Pit
- Tag changed from 2-3-stable, active_record, i18n to 2-3-stable, active_record, i18n, patch
-
Rohit Arondekar
- State changed from new to stale
- Importance changed from to
Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.
