This project is archived and is in readonly mode.
Enhance :if argument for ActiveRecord validation methods
-
josh
- State changed from new to wontfix
I don't think those symbols with arguments are valid ruby syntax.
I would suggest just going the simple route and doing something like this,
validates_presence_of :name, :if => :in_correct_form def in_correct_form ... end -
Gerald Boersma
Joshua:
Of course. That won't work! I agree with your resolution for this one.
Just getting to know my way around Ruby, so I missed that one. Thanks for your help.
Cheers, Gerald