HornsAndHooves-moribus 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/moribus/alias_association.rb +2 -2
- data/lib/moribus/macros.rb +2 -2
- data/lib/moribus/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 458dd43da4a7bb700075f307e8bac67beea88ac91cc103d01dbc873e754c53ee
|
4
|
+
data.tar.gz: 699fd07e4333c5cea0c317c43f82d1f33e6b1f9629d32ff55099dd280f28a4f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8379ba55ec3c949f21961b50ac3d2979a093fa2790e3e9bd134574d76f7f2ed9cd82eb06ee752771f5e265a63568fc3cb69fe01502e38fdd5ff829d5df279add
|
7
|
+
data.tar.gz: 533dc47aa565a5ce7b84ef924eea7a18d0a3d4776c29d6a971e1a430b7a3dd713143b7e9d4db253d00777dc5b430571dd62d3b7b3c64fd01a45b09b9ae8790a2
|
@@ -45,7 +45,7 @@ module Moribus
|
|
45
45
|
options = scope if scope.is_a?(Hash)
|
46
46
|
|
47
47
|
alias_name = options.delete(:alias)
|
48
|
-
reflection = super(name, scope, options, &extension)
|
48
|
+
reflection = super(name, scope, **options, &extension)
|
49
49
|
alias_association(alias_name, name) if alias_name
|
50
50
|
reflection
|
51
51
|
end
|
@@ -55,7 +55,7 @@ module Moribus
|
|
55
55
|
options = scope if scope.is_a?(Hash)
|
56
56
|
|
57
57
|
alias_name = options.delete(:alias)
|
58
|
-
reflection = super(name, scope, options)
|
58
|
+
reflection = super(name, scope, **options)
|
59
59
|
alias_association(alias_name, name) if alias_name
|
60
60
|
reflection
|
61
61
|
end
|
data/lib/moribus/macros.rb
CHANGED
@@ -91,7 +91,7 @@ module Moribus
|
|
91
91
|
scope = current_scope
|
92
92
|
end
|
93
93
|
|
94
|
-
reflection = has_one(name, scope, options)
|
94
|
+
reflection = has_one(name, scope, **options)
|
95
95
|
reflection = normalize_reflection(reflection, name)
|
96
96
|
reflection.options[:is_current] = true
|
97
97
|
accepts_nested_attributes_for name
|
@@ -106,7 +106,7 @@ module Moribus
|
|
106
106
|
# by special aggregated functionality (attribute delegation. See
|
107
107
|
# Extensions::HasAggregatedExtension)
|
108
108
|
def has_aggregated(name, options = {})
|
109
|
-
reflection = belongs_to(name, options)
|
109
|
+
reflection = belongs_to(name, **options)
|
110
110
|
reflection = normalize_reflection(reflection, name)
|
111
111
|
reflection.options[:aggregated] = true
|
112
112
|
accepts_nested_attributes_for name
|
data/lib/moribus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: HornsAndHooves-moribus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HornsAndHooves
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2022-08-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
208
|
- !ruby/object:Gem::Version
|
209
209
|
version: '0'
|
210
210
|
requirements: []
|
211
|
-
rubygems_version: 3.0.
|
211
|
+
rubygems_version: 3.0.9
|
212
212
|
signing_key:
|
213
213
|
specification_version: 4
|
214
214
|
summary: Introduces Aggregated and Tracked behavior to ActiveRecord::Base models
|