polymorphic_integer_type 2.1.0 → 2.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 11fbd6f9c602a576f371e3229014f93c51c656d2
|
|
4
|
+
data.tar.gz: 7de5bd1c342aaf386ef9cd3defe7cb2791e1bda4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f266a00a2d64233c9362f344c2d9077ffbf0fd4df12bb3dd99734b239b9c0d2867dbe7b741e36c0348adc19f9e181204e534e70c307fa711e3323c6e2958f835
|
|
7
|
+
data.tar.gz: 31355ff1e141213dd72935588ae45cb64ff4787407ce80ee0b242d76c7e04a41a665b432675a45b3f3d25259c44ed5c87f0fe6e3ddac13797950f703b9d689a0
|
|
@@ -3,7 +3,7 @@ module PolymorphicIntegerType
|
|
|
3
3
|
module Extensions
|
|
4
4
|
module ClassMethods
|
|
5
5
|
|
|
6
|
-
def belongs_to(name, scope = nil, options
|
|
6
|
+
def belongs_to(name, scope = nil, **options)
|
|
7
7
|
options = scope if scope.kind_of? Hash
|
|
8
8
|
integer_type = options.delete :integer_type
|
|
9
9
|
super
|
|
@@ -94,7 +94,7 @@ module PolymorphicIntegerType
|
|
|
94
94
|
end
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
-
def has_many(name, scope = nil, options
|
|
97
|
+
def has_many(name, scope = nil, **options, &extension)
|
|
98
98
|
if scope.kind_of? Hash
|
|
99
99
|
options = scope
|
|
100
100
|
scope = nil
|
|
@@ -104,7 +104,7 @@ module PolymorphicIntegerType
|
|
|
104
104
|
super(name, options.delete(:scope), options, &extension)
|
|
105
105
|
end
|
|
106
106
|
|
|
107
|
-
def has_one(name, scope = nil, options
|
|
107
|
+
def has_one(name, scope = nil, **options)
|
|
108
108
|
if scope.kind_of? Hash
|
|
109
109
|
options = scope
|
|
110
110
|
scope = nil
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: polymorphic_integer_type
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kyle d'Oliveira
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-05-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|