Validates danish CVR numbers on your models.
Add to your model:
class Company < ApplicationRecord
validates :vat_number, cvr: true
end
Add this line to your application's Gemfile:
gem 'validates_cvr'
And then execute:
$ bundle
Or install it yourself as:
$ gem install validates_cvr
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.