README.md in unidom-article_number-1.2.1 vs README.md in unidom-article_number-1.3
- old
+ new
@@ -35,10 +35,12 @@
## Include the Concern
```ruby
include Unidom::ArticleNumber::Concerns::AsBarcode
include Unidom::ArticleNumber::Concerns::AsMarked
+include Unidom::ArticleNumber::Concerns::AsEan13Marked
+include Unidom::ArticleNumber::Concerns::AsEan8Marked
```
### As Barcode concern
The As Barcode concern do the following tasks for the includer automatically:
1. Define the has_many :markings macro as: ``has_many :markings, class_name: 'Unidom::ArticleNumber::Marking', as: :barcode``
@@ -47,5 +49,15 @@
### As Marked concern
The As Marked concern do the following tasks for the includer automatically:
1. Define the has_many :markings macro as: ``has_many :markings, class_name: 'Unidom::ArticleNumber::Marking', as: :marked``
2. Define the #is_marked! method as: ``def is_marked!(as: nil, by: nil, at: Time.now)``
+
+### As EAN-13 Marked concern
+The As EAN-13 Marked concern do the following tasks for the includer automatically:
+1. Include the As Marked concern
+2. Define the has_many :ean13_barcodes macro as: ``has_many :ean13_barcodes, through: :markings, source: :barcode, source_type: 'Unidom::ArticleNumber::Ean13Barcode'``
+
+### 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'``