README.md in unidom-article_number-2.0.2 vs README.md in unidom-article_number-2.1
- old
+ new
@@ -80,5 +80,15 @@
### As EAN-8 Marked concern
The As EAN-8 Marked concern do the following tasks for the includer automatically:
1. Include the As Marked concern
2. Define the has_many :ean8_barcodes macro as: ``has_many :ean8_barcodes, through: :markings, source: :barcode, source_type: 'Unidom::ArticleNumber::Ean8Barcode'``
+
+
+
+## Validator
+
+### Vehicle Identification Number validator
+
+```ruby
+validates :vin, presence: true, 'unidom/article_number/vehicle_identification_number': true
+```