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 6f8d44db522b Raw commit »

commit
6f8d44db522b
parent
a0ab430243c7
branch
default

Rewrote tests in rspec with fewer dependencies and ensured they were
passing.

Changed the Readme to markdown format and updated it slightly.

Added a gemspec.

Comments

    Log in to comment »

    File Lines added Lines removed
    .gitignore 1
    Rakefile 20 19
    Readme 37
    Readme.markdown 60
    VERSION 1
    has_and_belongs_to_many_with_deferred_save.gemspec 61
    spec/.gitignore 2
    spec/db/database.yml 21
    spec/db/schema.rb 21
    spec/has_and_belongs_to_many_with_deferred_save_spec.rb 74
    spec/models/person.rb 3
    spec/models/room.rb 17
    spec/spec_helper.rb 23
    test/rails_root/Rakefile 10
    test/rails_root/app/controllers/application.rb 7
    test/rails_root/app/helpers/application_helper.rb 3
    test/rails_root/app/models/person.rb 3
    test/rails_root/app/models/room.rb 17
    test/rails_root/config/boot.rb 45
    test/rails_root/config/database.yml 11
    test/rails_root/config/environment.rb 60
    test/rails_root/config/environments/development.rb 21
    test/rails_root/config/environments/production.rb 18
    test/rails_root/config/environments/test.rb 19
    test/rails_root/config/routes.rb 23
    test/rails_root/db/migrate/001_create_rooms_and_people.rb 21
    test/rails_root/db/schema.rb 21
    test/rails_root/log/development.log 14
    test/rails_root/log/production.log
    test/rails_root/log/server.log
    test/rails_root/log/test.log 13
    test/rails_root/test/fixtures/people.yml 7
    test/rails_root/test/fixtures/rooms.yml 5
    test/rails_root/test/test_helper.rb 28
    test/rails_root/test/unit/room_maximum_occupancy_test.rb 56
    test/rails_root/test/unit/room_maximum_occupancy_test_1.rb 26
    test/rails_root/test/unit/room_maximum_occupancy_test_2.rb 31
    test/rails_root/test/unit/room_maximum_occupancy_test_3.rb 33
    test/rails_root/vendor/plugins/has_and_belong_to_many_with_deferred_save/init.rb 8
    test/test_helper.rb 12