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

Commit 80300ab7a55f Raw commit »

commit
80300ab7a55f
parent
6f8d44db522b
branch
default

Added tests to ensure that include? works as expected

Comments

    Log in to comment »

    File Lines added Lines removed
    spec/db/schema.rb 9
    spec/has_and_belongs_to_many_with_deferred_save_spec.rb 75 3
    spec/models/door.rb 3
    spec/models/person.rb 5 1
    spec/models/room.rb 2 1