Skip to content

Commit

Permalink
Improved README
Browse files Browse the repository at this point in the history
  • Loading branch information
javiertoledo committed Jun 22, 2012
1 parent d432ee7 commit 47764dc
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@ Or install it yourself as:

Just use any of the following validators.

# A person id
class Person < ActiveRecord::Base
validates :dni, :valid_nif => true
end

# A company id
class Company < ActiveRecord::Base
validates :cif, :valid_cif => true
end

# A foreigner id
class Alien < ActiveRecord::Base
validates :nie, :valid_nie => true
end

# Any kind of id is valid
class SpanishSubject < ActiveRecord::Base
validates :id, :valid_spanish_vat => true
end
# A person id
class Person < ActiveRecord::Base
validates :dni, :valid_nif => true
end

# A company id
class Company < ActiveRecord::Base
validates :cif, :valid_cif => true
end

# A foreigner id
class Alien < ActiveRecord::Base
validates :nie, :valid_nie => true
end

# Any kind of id is valid
class SpanishSubject < ActiveRecord::Base
validates :id, :valid_spanish_vat => true
end

## Contributing

Expand Down

0 comments on commit 47764dc

Please sign in to comment.