Alessio Caiazza is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

nolith / habtm-with-deferred-save

Rails plugin. Defers saving the records you add to habtm association until you call model.save, allowing validation in the style of normal attributes.

Clone this repository (size: 195.2 KB): HTTPS / SSH
hg clone https://bitbucket.org/nolith/habtm-with-deferred-save
hg clone ssh://hg@bitbucket.org/nolith/habtm-with-deferred-save

File history for habtm-with-deferred-save / has_and_belongs_to_many_with_deferred_save / lib / has_and_belongs_to_many_with_deferred_save.rb

Author Revision Message Labels Date
Alessio Caiazza c7287bf557dd FIX: delete all the assocation into the join table after obj.destroy
Alessio Caiazza d8a7e572f5cc FIX: test if unsaved_collection in initialized in before_save_with_deferred_save_for_collection
Alessio Caiazza 356177366517 fix the access to collection_singular_ids and allows to use collection.includes?(obj) with SigleTableInheritance w/out :select => :type
Alessio Caiazza 3ed2e6884cb2 This patch allows the use of more than one has_and_belongs_to_many_with_deferred_save per Model
tyler.rick 2498251996b3 Accidentally called it has_and_belong_to_many_with_deferred_save/