eac_rails_utils 0.29.6 → 0.31.0
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a442a83237bb4c4446106d2ccadbc8bd81ade0bcd9ec0cda330672d35496cce
|
|
4
|
+
data.tar.gz: 2b5b31e8dca29d124536f249ec48c5d8166f0ad0dd3d817fe35ad3866e37394e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e2bf5bdbaeef59c7319f2f53a8671b5a9027df5583215ec4f93ef6fa176cc385fcc89ee022b99413a671dd417e31da34884d9143b62ca2f49af2ec1fcc6649d
|
|
7
|
+
data.tar.gz: e19dc24f46d0711405477120be44cc98b0cca36ca62d549361a991f10d219f731662b2149b35ef3e09106dd6a57c600c954f2aa1c26a73f78c9a40cdf737b712
|
|
@@ -98,6 +98,20 @@ module EacRailsUtils
|
|
|
98
98
|
association
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
+
# generated association accessors call this before reading/writing an association
|
|
102
|
+
# (added by Rails to support the deprecated associations API, since Rails 8.1)
|
|
103
|
+
if defined?(ActiveRecord::Associations::Deprecation)
|
|
104
|
+
def deprecated_associations_api_guard(association, method_name)
|
|
105
|
+
ActiveRecord::Associations::Deprecation.guard(association.reflection) do
|
|
106
|
+
"the method #{method_name} was invoked"
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
def report_deprecated_association(reflection, context:)
|
|
111
|
+
ActiveRecord::Associations::Deprecation.report(reflection, context: context)
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
101
115
|
def read_attribute(name)
|
|
102
116
|
send(name)
|
|
103
117
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eac_rails_utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.31.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- E.A.C.
|
|
@@ -55,14 +55,14 @@ dependencies:
|
|
|
55
55
|
requirements:
|
|
56
56
|
- - ">="
|
|
57
57
|
- !ruby/object:Gem::Version
|
|
58
|
-
version:
|
|
58
|
+
version: '7.2'
|
|
59
59
|
type: :runtime
|
|
60
60
|
prerelease: false
|
|
61
61
|
version_requirements: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
|
63
63
|
- - ">="
|
|
64
64
|
- !ruby/object:Gem::Version
|
|
65
|
-
version:
|
|
65
|
+
version: '7.2'
|
|
66
66
|
- !ruby/object:Gem::Dependency
|
|
67
67
|
name: sprockets-rails
|
|
68
68
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -123,20 +123,14 @@ dependencies:
|
|
|
123
123
|
requirements:
|
|
124
124
|
- - "~>"
|
|
125
125
|
- !ruby/object:Gem::Version
|
|
126
|
-
version: '0.
|
|
127
|
-
- - ">="
|
|
128
|
-
- !ruby/object:Gem::Version
|
|
129
|
-
version: 0.13.1
|
|
126
|
+
version: '0.15'
|
|
130
127
|
type: :development
|
|
131
128
|
prerelease: false
|
|
132
129
|
version_requirements: !ruby/object:Gem::Requirement
|
|
133
130
|
requirements:
|
|
134
131
|
- - "~>"
|
|
135
132
|
- !ruby/object:Gem::Version
|
|
136
|
-
version: '0.
|
|
137
|
-
- - ">="
|
|
138
|
-
- !ruby/object:Gem::Version
|
|
139
|
-
version: 0.13.1
|
|
133
|
+
version: '0.15'
|
|
140
134
|
executables: []
|
|
141
135
|
extensions: []
|
|
142
136
|
extra_rdoc_files: []
|