Sha256: 9a4db0d48b7c729b489b9dd545e5adfac689fa9de4812fe96e0a9afe209b5c3c

Contents?: true

Size: 191 Bytes

Versions: 2

Compression:

Stored size: 191 Bytes

Contents

# frozen_string_literal: true

class User
  include ActiveModel::Model

  attr_accessor :cpf, :masked_cpf, :name

  validates :cpf, cpf: true
  validates :masked_cpf, cpf: { mask: true }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
validates_cpf-3.1.0 spec/fake_app/user.rb
validates_cpf-3.0.0 spec/fake_app/user.rb