Validation with :if params

validates_presence_of :email :if => Proc.new {|model| model.respond_via == "e_mail"}