Skip to content

kaspernj/validates_cvr

Repository files navigation

ValidatesCvr

Validates danish CVR numbers on your models.

Usage

Add to your model:

class Company < ApplicationRecord
  validates :vat_number, cvr: true
end

Installation

Add this line to your application's Gemfile:

gem 'validates_cvr'

And then execute:

$ bundle

Or install it yourself as:

$ gem install validates_cvr

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.

About

ActiveRecord validations for Danish CVR numbers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published