Permalink
Commits on Feb 22, 2009
  1. Updated documentation.

    alloy committed Feb 22, 2009
  2. NOt going to worry about duplicate callback definitions in a chain fo…

    alloy committed Feb 22, 2009
    …r now as it doesn't seem to call them multiple times.
  3. When adding a new record to a collection and :autosave => true; bypas…

    alloy committed Feb 22, 2009
    …s validations when inserting the record. Fix for #2013.
Commits on Feb 20, 2009
  1. Small cleanup.

    alloy committed Feb 20, 2009
  2. Lazy evaluate ActionController session store middleware class to pick…

    josh committed with alloy Feb 20, 2009
    …up custom plugin session stores [#2001 state:resolved]
  3. Make atomic_write() puts the check_file in the cache dir, not in appl…

    brunetton committed with alloy Feb 20, 2009
    …ication
    
    root [#1962 state:resolved]
    Signed-off-by: Joshua Peek <josh@joshpeek.com>
  4. Added failing test for adding multiple save/validate callbacks for th…

    alloy committed Feb 20, 2009
    …e same method. This shouldn't happen at all so should maybe be fixed in callbacks.rb
Commits on Feb 19, 2009
  1. Removed a few characters.

    alloy committed Feb 19, 2009
  2. Removed all autosave related code from associations.rb and override t…

    alloy committed Feb 19, 2009
    …he association methods to add the autosave callbacks.
  3. Refactoring.

    alloy committed Feb 19, 2009
  4. Refactoring.

    alloy committed Feb 19, 2009
  5. Small refactor.

    alloy committed Feb 19, 2009
  6. No need to dynamically define the before_save callback which sets the…

    alloy committed Feb 19, 2009
    … @new_record_before_save variable.
  7. Moved enabling autosave on an association to add_autosave_association…

    alloy committed Feb 19, 2009
    …_callbacks in AutosaveAssociation.
Commits on Feb 18, 2009
  1. Some cleanups.

    alloy committed Feb 18, 2009
  2. Removed variable.

    alloy committed Feb 18, 2009
  3. Some refactoring.

    alloy committed Feb 18, 2009
  4. Small refactor.

    alloy committed Feb 18, 2009
  5. Check whether or not to validate from the actual validation method fo…

    alloy committed Feb 18, 2009
    …r a collection association.
  6. Always define a validate method for a one-to-one association and chec…

    alloy committed Feb 18, 2009
    …k there wether or not to validate.
  7. Removed after_save callback which handled autosave on one-to-one asso…

    alloy committed Feb 18, 2009
    …ciations and merged with existing default autosave behaviour and some refactoring.
  8. Moved before_save callbacks for polymorphic and non-polymorphic belon…

    alloy committed Feb 18, 2009
    …gs_to associations into one.
  9. Small cleanup.

    alloy committed Feb 18, 2009
  10. Moved default autosave behaviour on a belongs_to association to Autos…

    alloy committed Feb 18, 2009
    …aveAssociation::ClassMethods::add_belongs_to_associated_save_callbacks.
    
    Note that their are NO failing tests cases when the before_save callback of a polymorphic belongs_to association is disabled…
  11. Moved default autosave behaviour of has_one into AutsaveAssociation::…

    alloy committed Feb 18, 2009
    …ClassMethods::add_has_one_associated_save_callbacks.
  12. Actually removed save!

    alloy committed Feb 17, 2009
  13. Added add_single_associated_validation_callbacks which takes over the…

    alloy committed Feb 17, 2009
    … responsibility of saving autosave associations. Removed aliased save and save!.
  14. Experimenting with moving autosave into the same code as the existing…

    alloy committed Feb 16, 2009
    … default autosave behaviour.
  15. Moved add_multiple_associated_save_callbacks to AutosaveAssociation a…

    alloy committed Feb 16, 2009
    …nd its relevant tests.
    
    Removed some test coverage from tests in has_many_associations_test which didn't need to test the autosaving and made new tests for those in autosave_association_test.
  16. Refactored all logic for cehcking the if an association is valid and …

    alloy committed Feb 16, 2009
    …adding errors to autosave_association_valid?
  17. Merged Gaspards changes.

    alloy committed Feb 16, 2009