Sha256: 4b955b84458c38e1c9b8d52269d08045202c36733d61f0346e2383018bb47cb7

Contents?: true

Size: 185 Bytes

Versions: 4

Compression:

Stored size: 185 Bytes

Contents

class User
  include ActiveModel::Validations
  include Simple::Validators

  attr_accessor :email, :username

  validates :email, email: true
  validates :username, username: true
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple-validators-1.2.0 spec/dummy/app/models/user.rb
simple-validators-1.1.0 spec/dummy/app/models/user.rb
simple-validators-1.0.1 spec/dummy/app/models/user.rb
simple-validators-1.0.0 spec/dummy/app/models/user.rb