Skip to content
Commits on Jun 10, 2011
Commits on Jun 3, 2011
  1. @xaviershay

    jRuby 1.6.1 did not resolve bug 5622 around unicode regex character p…

    xaviershay committed
    …roperties, and there is still no target version assigned to it. For now bumping the conditional to 1.6.2, but I think it should probably be removed given I don't expect it to be fixed in that version either.
Commits on Jun 2, 2011
  1. @xaviershay

    Merge emmanuel's refactorings:

    xaviershay committed
    - #25 emmanuel/feature/clean_and_refactor
    - #26 emmanuel/feature/remove_chainable
    - #28 emmanuel/feature/externalize_responsibilities
    - #29 emmanuel/feature/refactor_context
    
    Conflicts:
    	lib/dm-validations.rb
    	lib/dm-validations/support/context.rb
Commits on Jun 1, 2011
  1. @emmanuel
Commits on May 31, 2011
  1. @emmanuel

    Add & clean up a few comments.

    emmanuel committed
  2. @emmanuel

    Rename a couple of methods on ContextualValidators for clarity.

    emmanuel committed
    Also remove now unused instance methods from Validations::Context.
  3. @emmanuel

    Replace calls to Validations::Context#validation_context.

    emmanuel committed
    Replaced with calls to Validations::Context.in_context.
  4. @emmanuel
  5. @emmanuel
  6. @emmanuel
  7. @emmanuel

    Add ContextualValidators#[], which delegates to @attributes.

    emmanuel committed
    This lets you access validators by property name (eg., `User.validators[:email]`, which could be handy when reflecting on validations by property name. For example, when generating form hints or client-side validations.
  8. @emmanuel
  9. @emmanuel
  10. @emmanuel
  11. @emmanuel
  12. @emmanuel
  13. @emmanuel

    Add a TODO note.

    emmanuel committed
  14. @emmanuel
  15. @emmanuel
  16. @emmanuel
  17. @emmanuel
Commits on May 30, 2011
  1. @emmanuel
  2. @emmanuel
  3. @emmanuel
  4. @emmanuel
  5. @emmanuel
  6. @emmanuel

    Externalize Model#add_validator_to_context, #create_context_instance_…

    emmanuel committed
    …methods, and #opts_from_validator_args.
    
    Moved them out to DataMapper::Validations, because they're certainly not core responsibilities of Model.
  7. @emmanuel
  8. @emmanuel
  9. @emmanuel
  10. @emmanuel
Commits on May 26, 2011
  1. @emmanuel
  2. @emmanuel
  3. @emmanuel
  4. @emmanuel
Something went wrong with that request. Please try again.