Sha256: 7a66f19416e50c1b986b1395fe97288d7a060c9e6bf1821a2dca45e6d5aa2c1e
Contents?: true
Size: 304 Bytes
Versions: 4
Compression:
Stored size: 304 Bytes
Contents
class User include ActiveModel::Validations include ActiveModel::Conversion extend ActiveModel::Naming attr_accessor :cpf, :name validates :cpf, :cpf => true def initialize(attributes = {}) attributes.each do |key, value| instance_variable_set("@#{key}", value) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
validates_cpf-2.0.1 | spec/fake_app/user.rb |
validates_cpf-2.0.0 | spec/fake_app/user.rb |
validates_cpf-2.0.0.rc2 | spec/fake_app/user.rb |
validates_cpf-2.0.0.rc1 | spec/fake_app/user.rb |