Jamie Hill
Not a member
Jamie Hill's latest activity
Wednesday, August 19 2009
-
Jamie Hill commented at 12:55 PMCan I get thoughts on publicising the new read_attribute_for_validation method as then this could be used in custom validators meaning they would be super-flexi...
-
Jamie Hill commented at 12:51 PMI've just noticed that my email example validator was wrong too, should have been.
class EmailValidator < ActiveRecord::Validator def validate field = op... -
Jamie Hill commented at 12:30 PMAhh, good spot. It looks like I didn't add the 2 most important files which also include the documentation.
Attached is the ACTUAL patch.
Sunday, August 16 2009
-
Jamie Hill commented at 1:05 AMApologies, that last line should have read:
ActiveModel::Validations.register_validator :presence, RequiredValidator -
Jamie Hill created the ticket at 1:03 AMFollowing on from my previous patch https://rails.lighthouseapp.com/projects/8994/tickets/2936, this patch adds to the validation hooks with a set-up similar to...
Wednesday, August 05 2009
-
Jamie Hill commented at 5:15 PMThanks for getting back to me on this.
Agreed on the name, new patch attached.
Wednesday, July 22 2009
-
- Title changed from Allow classes using validation to specify how attributes should be read to [PATCH] Allow classes using validation to specify how attributes should be read
-
-
Jamie Hill created the ticket at 1:21 AMThis patch adds a hook method to validations allowing a class to define how it's attributes should be acquired. This is useful should the class not use the defa...
-
Jamie Hill created the ticket at 1:13 AMThis patch adds a hook method to validations allowing a class to define how it's attributes should be acquired. This is useful should the class not use the defa...