Lawrence Pit
Not a member
Lawrence Pit's latest activity
Monday, September 28 2009
3288
Using destroy on AR association collection updates the collection in memory.
was created
in Ruby on Rails
-
Lawrence Pit created the ticket at 1:14 AMThis fails on the second +assert_equal+ statement.
p = Pirate.first assert_equal 2, p.parrots.length p.parrots.destroy(p.parrots.first) assert_equal 1,...
Sunday, September 27 2009
Download
has_many_callbacks.diff(19 kb)
has_many_callbacks.diff(19 kb)
3147
ActiveRecord::Error#full_message broken when used with I18n and autosave asso...
was updated
in Ruby on Rails
-
Lawrence Pit commented at 8:34 AMI applied the patch and tested it. It looks to me. So +1
One thing though: currently the relationship of the Error object with the specific association is remov...
3277
+before_create+, +after_create+, +before_destroy+ and +after_destroy+ callbac...
was created
in Ruby on Rails
-
Lawrence Pit created the ticket at 7:19 AMI have a need to log / audit changes to has_many and has_and_belongs_to_many records. Especially has_and_belongs_to_many associations are currently hard to audi...
Thursday, September 24 2009
3186
Improved AR::Errors API to get to the Error objects
was updated
in Ruby on Rails
-
- Tag changed from 2-3-stable, active_record, i18n to 2-3-stable, active_record, i18n, patch
-
3185
Docs and tests for the Errors.each_error method
was updated
in Ruby on Rails
-
- Tag changed from 2.3.x, active_record, i18n to 2.3.x, active_record, i18n, patch
-
Friday, September 11 2009
3186
Improved AR::Errors API to get to the Error objects
was updated
in Ruby on Rails
-
Lawrence Pit commented at 7:25 AMwhere 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 ... -
Lawrence Pit created the ticket at 7:20 AMCurrently the only way to get to the raw Error objects if via model.errors.each_error. This patch provides a nicer API for the usual cases where you just want t...