When I looked at that example from Matt I thought "hang on there's a hook for that", but I looked at the code and it got lost along the way. I think you used to be able to do
login_attribute :email do # ... custom validations end Maybe we could just add :validate => false as an option in the fields block? Tom On 24 Feb 2010, at 01:33, Bryan Larsen wrote: > That snippet of code is very awkward, so I created a bug on Hobo > https://hobo.lighthouseapp.com/projects/8324-hobo/tickets/638-password-validations-are-awkward-to-override. > > Bryan > > Donald R. Ziesig wrote: >> Matt Jones, et., al. >> Putting the module code in an initializer worked perfectly. >> For those of you, like me, that want to customize things, but are >> overwhelmed by Hobo: >> I created a file called customizations.rb in config/initializers. That >> file contains >> module Hobo >> module User >> module ClassMethods >> def password_validations >> validates_length_of :password, :within => 8..40, :if => >> :new_password_required? >> end >> end >> end >> I'll fill in the complex part later. >> Many thanks, >> donz > > -- > You received this message because you are subscribed to the Google Groups > "Hobo Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/hobousers?hl=en. > -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
