On Thu, Mar 26, 2009 at 1:26 PM, dhmspector <[email protected]> wrote:
> In essence: validates_numericality_of :admin_comp,
> unless :admin_headcount <= 0
>
>
> any simple and obvious way to accomplish this..?
validates_numericality_of :admin_comp, :unless => Proc.new{ |r|
r.admin_headcount <= 0 }
--
Greg Donald
http://destiney.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---