Displaying 1 result from an estimated 1 matches for "ensure_some_stuff".
2008 Jan 23
2
Combine custom validations with helpers
Hi
I have a model that uses several validation helpers, for example
validates_presence_of. Now I want to add a custom validate method for
a very complex validation. I override validate in the model and it
works by itself but when I do this the helper validations stop
working. I guess the helper methods rely on the
ActiveRecord::Base#validate original method in some way. Has anyone
any suggestions