has-many-with-set 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/has-many-with-set/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9f4d6cd6bb1fcee11a1e2eaf915e7c0efdaa9dee073a3fe96deaef9b7af36add
|
|
4
|
+
data.tar.gz: 86a6fdaff6623418817b0db7bcd6ed47987a7ba0c06fbc5a6ba87d55b086f04d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2de00b586e37ca848f38a74a47a0c60ece0f54754e8b0baf6eb0461fd723597a928240785797e24e33ce3196b191e01d9e0cc4ad16a101a07b78c8f36c63bc78
|
|
7
|
+
data.tar.gz: 83bcad1a37ad1f694549f99e4daa419ddd39a976c1d03b2ddfdbe3c835ea3314318ba627a2102d79197ac466b6e252b0e598b026e619da319c20e56467d5b31f
|
data/README.md
CHANGED
|
@@ -69,7 +69,7 @@ To to use *_has-many-with-set_* to relate two already existing models you have t
|
|
|
69
69
|
And add the relationship to your parent model:
|
|
70
70
|
|
|
71
71
|
```
|
|
72
|
-
class Parent <
|
|
72
|
+
class Parent < ApplicationRecord
|
|
73
73
|
has_many_with_set :children
|
|
74
74
|
end
|
|
75
75
|
```
|
|
@@ -109,7 +109,7 @@ tags = Tag.all
|
|
|
109
109
|
a.save
|
|
110
110
|
end
|
|
111
111
|
|
|
112
|
-
ArticlesTagsSetsTag = Class.new(
|
|
112
|
+
ArticlesTagsSetsTag = Class.new(ApplicationRecord)
|
|
113
113
|
ArticlesTagsSetsTag.count # this class doesn't exist by default,
|
|
114
114
|
# I had to create it by hand for the example.
|
|
115
115
|
=> 80
|