Address.class_eval do
validates_presence_of :phone, :if => false
end
Should do the trick, your declaration was doing nothing, becouse it was
never running (if false prevented it). I'm redifining it with built in
guard.
regards
Marcin Raczkowski
Strange, I thought it would accept false as parameter, you can try:
Address.class_eval do
validates_presence_of :phone, :if => lambda { false }
end
anyway back to the point, please check if gateway does not require phone
address, it's qute possible you solved one problem just to stumble on
another .