Luca Guidi
Not a member
Luca Guidi's latest activity
Wednesday, March 11 2009
-
Luca Guidi commented at 11:16 AMOk, in the meanwhile I played a bit with my patch, it seems to work fine for me. The only change I would apply is related to migrations execution order: as I sa...
Tuesday, March 10 2009
-
-
Luca Guidi commented at 11:22 AMOk, I changed a little bit the method:
# Destroy +records+ and remove from this association calling +before_remove+ # and +after_remove+ callbacks. # # No... -
Luca Guidi commented at 11:14 AMOk, I solved the
NoMethodErrorproblem (solution 2):AssociationCollection#callbackshould beprotectedinstead of to beprivate.association.send(:callback,...
Monday, March 09 2009
-
Luca Guidi commented at 2:50 PMI mean, invoking
record.destroy(http://github.com/rails/rails/bl...) delete the record, running theActiveRecord::Basecallbacks only:before_destroyandafter...
Friday, March 06 2009
-
Luca Guidi commented at 10:35 AMInvoking
destroywill runActiveRecord::Basecallbacks, cause record is an instance of that class and doesn't know to belonging to an association.AssociationCo... -
Luca Guidi commented at 10:20 AM..And I don't know why if use
collection.send(:callback, :before_remove, record)it returns aNoMethodError. -
Luca Guidi commented at 10:15 AMCallbacks aren't ran, cause we use only
record.destroy. Code similar to this is inAssociationProxy#delete, but it run also unwanted callbacks.Just to try, ins...
-
Luca Guidi created the ticket at 1:30 AMclass Person < ActiveRecord::Base has_many :emails, :after_remove => :set_preferred_email accepts_nested_attributes_for :emails, :allow_destroy => true...
Monday, March 02 2009
-
Luca Guidi commented at 10:19 AMI'll try to provide a trivial example.
vendor/plugins/authentication/db/migrate/20090101000000_create_users.rb db/migrate/20090101000001_add_users_openid.rb...