Skip to content

email validation doesn't think '' is wrong #60

jpr5 opened this Issue Sep 24, 2012 · 2 comments

2 participants

DataMapper member
jpr5 commented Sep 24, 2012
class User
  include ::DataMapper::Resource

  property :id, Serial
  property :email, String

  validates_format_of :email, :as => :email_address


User.create(:email => '') # => succeeds
DataMapper member
jpr5 commented Sep 25, 2012

Failing test at jpr5@23f9af5

tillsc commented Jan 2, 2015

There is a pull request addressing this issue: #71

Could you vote for the pull request and close this issue if the solution is ok for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.