activerecord_touchy 0.1.0 → 0.1.1
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/lib/activerecord_touchy/associations.rb +2 -2
- data/lib/activerecord_touchy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb8e3bd2d6fc5b02da2896e6444428ef0bdc5e6e
|
|
4
|
+
data.tar.gz: 1be134813604e44652bb3563c6af359459494617
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a5a5bea260fa8911fec13a9eb5dd40d960793496bd93b5e750edbe8f32cfae94262ccefa397a43cbbb084420bcb6787dbb5f245770e512c77cc2f8fd1f6d7e8
|
|
7
|
+
data.tar.gz: 981fdc3c00fd5df675d6546c1813dcc631cdfccb39a84f4c5a43e07a0c20ce390d430e9bd3f11745ca713bb21a76874c70fcce4819d007e65bc812b54d06ac7d
|
|
@@ -7,7 +7,7 @@ module ActiverecordTouchy
|
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
module ClassMethods
|
|
10
|
-
def has_many(name, scope = nil, options
|
|
10
|
+
def has_many(name, scope = nil, **options, &extension)
|
|
11
11
|
touch = (scope.is_a?(Hash) ? scope : options).delete(:touch)
|
|
12
12
|
result = super
|
|
13
13
|
|
|
@@ -20,7 +20,7 @@ module ActiverecordTouchy
|
|
|
20
20
|
result
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
-
def has_one(name, scope = nil, options
|
|
23
|
+
def has_one(name, scope = nil, **options)
|
|
24
24
|
touch = (scope.is_a?(Hash) ? scope : options).delete(:touch)
|
|
25
25
|
result = super
|
|
26
26
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord_touchy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vital Ryabchinskiy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-04-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|