Pass to the lambda

This commit is contained in:
Raphael 2010-08-17 11:45:47 -07:00
parent b55a99ec09
commit 015940b60e

View file

@ -21,7 +21,7 @@ class User
######## Making things work ########
key :email, String
validates_true_for :email, :logic => lambda {
validates_true_for :email, :logic => lambda { |email|
email.include?('@pivotallabs.com') || email.include?('@pivotalsf.com')}
def method_missing(method, *args)