alchemrest 3.3.0 → 3.4.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 +4 -4
- data/Appraisals +12 -0
- data/Gemfile.lock +31 -31
- data/alchemrest.gemspec +1 -1
- data/gemfiles/faraday_2.gemfile.lock +4 -4
- data/gemfiles/faraday_2_rails_8_1.gemfile +9 -0
- data/gemfiles/faraday_2_rails_8_1.gemfile.lock +365 -0
- data/gemfiles/rails_7_2.gemfile.lock +4 -4
- data/gemfiles/rails_8_0.gemfile.lock +4 -4
- data/gemfiles/rails_8_1.gemfile +9 -0
- data/gemfiles/rails_8_1.gemfile.lock +387 -0
- data/lib/alchemrest/version.rb +1 -1
- data/sorbet/rbi/gems/{actionpack@8.0.4.1.rbi → actionpack@8.1.4.1.rbi} +2356 -1884
- data/sorbet/rbi/gems/{actionview@8.0.4.1.rbi → actionview@8.1.4.1.rbi} +1197 -989
- data/sorbet/rbi/gems/{activemodel@8.0.4.1.rbi → activemodel@8.1.4.1.rbi} +416 -274
- data/sorbet/rbi/gems/{activesupport@8.0.4.1.rbi → activesupport@8.1.4.1.rbi} +1677 -1153
- data/sorbet/rbi/gems/json@2.19.9.rbi +335 -0
- data/sorbet/rbi/gems/{loofah@2.25.2.rbi → loofah@2.25.3.rbi} +100 -82
- data/sorbet/rbi/gems/{nokogiri@1.19.4.rbi → nokogiri@1.19.7.rbi} +249 -212
- data/sorbet/rbi/gems/{rack@3.1.21.rbi → rack@3.1.23.rbi} +86 -83
- data/sorbet/rbi/gems/{rails-html-sanitizer@1.7.1.rbi → rails-html-sanitizer@1.7.2.rbi} +88 -79
- data/sorbet/rbi/gems/{railties@8.0.4.1.rbi → railties@8.1.4.1.rbi} +449 -328
- data/sorbet/rbi/shims/json.rbi +5 -0
- metadata +27 -19
- data/sorbet/rbi/gems/json@2.9.1.rbi +0 -282
|
@@ -13,7 +13,7 @@ module ActiveModel
|
|
|
13
13
|
# source://activemodel//lib/active_model/deprecator.rb#4
|
|
14
14
|
def deprecator; end
|
|
15
15
|
|
|
16
|
-
# source://activemodel//lib/active_model.rb#
|
|
16
|
+
# source://activemodel//lib/active_model.rb#82
|
|
17
17
|
def eager_load!; end
|
|
18
18
|
|
|
19
19
|
# source://activemodel//lib/active_model/gem_version.rb#5
|
|
@@ -83,10 +83,10 @@ class ActiveModel::Attribute
|
|
|
83
83
|
# source://activemodel//lib/active_model/attribute.rb#33
|
|
84
84
|
def initialize(name, value_before_type_cast, type, original_attribute = T.unsafe(nil), value = T.unsafe(nil)); end
|
|
85
85
|
|
|
86
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
86
|
+
# source://activemodel//lib/active_model/attribute.rb#123
|
|
87
87
|
def ==(other); end
|
|
88
88
|
|
|
89
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
89
|
+
# source://activemodel//lib/active_model/attribute.rb#115
|
|
90
90
|
def came_from_user?; end
|
|
91
91
|
|
|
92
92
|
# source://activemodel//lib/active_model/attribute.rb#66
|
|
@@ -95,25 +95,28 @@ class ActiveModel::Attribute
|
|
|
95
95
|
# source://activemodel//lib/active_model/attribute.rb#70
|
|
96
96
|
def changed_in_place?; end
|
|
97
97
|
|
|
98
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
98
|
+
# source://activemodel//lib/active_model/attribute.rb#99
|
|
99
|
+
def dup_or_share; end
|
|
100
|
+
|
|
101
|
+
# source://activemodel//lib/active_model/attribute.rb#143
|
|
99
102
|
def encode_with(coder); end
|
|
100
103
|
|
|
101
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
104
|
+
# source://activemodel//lib/active_model/attribute.rb#123
|
|
102
105
|
def eql?(other); end
|
|
103
106
|
|
|
104
107
|
# source://activemodel//lib/active_model/attribute.rb#74
|
|
105
108
|
def forgetting_assignment; end
|
|
106
109
|
|
|
107
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
110
|
+
# source://activemodel//lib/active_model/attribute.rb#119
|
|
108
111
|
def has_been_read?; end
|
|
109
112
|
|
|
110
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
113
|
+
# source://activemodel//lib/active_model/attribute.rb#131
|
|
111
114
|
def hash; end
|
|
112
115
|
|
|
113
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
116
|
+
# source://activemodel//lib/active_model/attribute.rb#135
|
|
114
117
|
def init_with(coder); end
|
|
115
118
|
|
|
116
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
119
|
+
# source://activemodel//lib/active_model/attribute.rb#111
|
|
117
120
|
def initialized?; end
|
|
118
121
|
|
|
119
122
|
# source://activemodel//lib/active_model/attribute.rb#29
|
|
@@ -122,7 +125,7 @@ class ActiveModel::Attribute
|
|
|
122
125
|
# source://activemodel//lib/active_model/attribute.rb#47
|
|
123
126
|
def original_value; end
|
|
124
127
|
|
|
125
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
128
|
+
# source://activemodel//lib/active_model/attribute.rb#151
|
|
126
129
|
def original_value_for_database; end
|
|
127
130
|
|
|
128
131
|
# source://activemodel//lib/active_model/attribute.rb#62
|
|
@@ -131,11 +134,11 @@ class ActiveModel::Attribute
|
|
|
131
134
|
# source://activemodel//lib/active_model/attribute.rb#29
|
|
132
135
|
def type; end
|
|
133
136
|
|
|
134
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
137
|
+
# source://activemodel//lib/active_model/attribute.rb#107
|
|
135
138
|
def type_cast(*_arg0); end
|
|
136
139
|
|
|
137
140
|
# source://activemodel//lib/active_model/attribute.rb#41
|
|
138
|
-
def value(&
|
|
141
|
+
def value(&_arg0); end
|
|
139
142
|
|
|
140
143
|
# source://activemodel//lib/active_model/attribute.rb#29
|
|
141
144
|
def value_before_type_cast; end
|
|
@@ -160,22 +163,22 @@ class ActiveModel::Attribute
|
|
|
160
163
|
|
|
161
164
|
private
|
|
162
165
|
|
|
163
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
166
|
+
# source://activemodel//lib/active_model/attribute.rb#177
|
|
164
167
|
def _original_value_for_database; end
|
|
165
168
|
|
|
166
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
169
|
+
# source://activemodel//lib/active_model/attribute.rb#173
|
|
167
170
|
def _value_for_database; end
|
|
168
171
|
|
|
169
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
172
|
+
# source://activemodel//lib/active_model/attribute.rb#160
|
|
170
173
|
def assigned?; end
|
|
171
174
|
|
|
172
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
175
|
+
# source://activemodel//lib/active_model/attribute.rb#169
|
|
173
176
|
def changed_from_assignment?; end
|
|
174
177
|
|
|
175
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
178
|
+
# source://activemodel//lib/active_model/attribute.rb#163
|
|
176
179
|
def initialize_dup(other); end
|
|
177
180
|
|
|
178
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
181
|
+
# source://activemodel//lib/active_model/attribute.rb#160
|
|
179
182
|
def original_attribute; end
|
|
180
183
|
|
|
181
184
|
class << self
|
|
@@ -196,80 +199,80 @@ class ActiveModel::Attribute
|
|
|
196
199
|
end
|
|
197
200
|
end
|
|
198
201
|
|
|
199
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
202
|
+
# source://activemodel//lib/active_model/attribute.rb#181
|
|
200
203
|
class ActiveModel::Attribute::FromDatabase < ::ActiveModel::Attribute
|
|
201
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
204
|
+
# source://activemodel//lib/active_model/attribute.rb#186
|
|
202
205
|
def forgetting_assignment; end
|
|
203
206
|
|
|
204
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
207
|
+
# source://activemodel//lib/active_model/attribute.rb#182
|
|
205
208
|
def type_cast(value); end
|
|
206
209
|
|
|
207
210
|
private
|
|
208
211
|
|
|
209
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
212
|
+
# source://activemodel//lib/active_model/attribute.rb#200
|
|
210
213
|
def _original_value_for_database; end
|
|
211
214
|
end
|
|
212
215
|
|
|
213
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
216
|
+
# source://activemodel//lib/active_model/attribute.rb#205
|
|
214
217
|
class ActiveModel::Attribute::FromUser < ::ActiveModel::Attribute
|
|
215
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
218
|
+
# source://activemodel//lib/active_model/attribute.rb#210
|
|
216
219
|
def came_from_user?; end
|
|
217
220
|
|
|
218
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
221
|
+
# source://activemodel//lib/active_model/attribute.rb#206
|
|
219
222
|
def type_cast(value); end
|
|
220
223
|
|
|
221
224
|
private
|
|
222
225
|
|
|
223
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
226
|
+
# source://activemodel//lib/active_model/attribute.rb#215
|
|
224
227
|
def _value_for_database; end
|
|
225
228
|
end
|
|
226
229
|
|
|
227
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
230
|
+
# source://activemodel//lib/active_model/attribute.rb#230
|
|
228
231
|
class ActiveModel::Attribute::Null < ::ActiveModel::Attribute
|
|
229
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
232
|
+
# source://activemodel//lib/active_model/attribute.rb#231
|
|
230
233
|
def initialize(name); end
|
|
231
234
|
|
|
232
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
235
|
+
# source://activemodel//lib/active_model/attribute.rb#235
|
|
233
236
|
def type_cast(*_arg0); end
|
|
234
237
|
|
|
235
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
238
|
+
# source://activemodel//lib/active_model/attribute.rb#243
|
|
236
239
|
def with_cast_value(value); end
|
|
237
240
|
|
|
238
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
241
|
+
# source://activemodel//lib/active_model/attribute.rb#239
|
|
239
242
|
def with_type(type); end
|
|
240
243
|
|
|
241
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
244
|
+
# source://activemodel//lib/active_model/attribute.rb#243
|
|
242
245
|
def with_value_from_database(value); end
|
|
243
246
|
|
|
244
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
247
|
+
# source://activemodel//lib/active_model/attribute.rb#243
|
|
245
248
|
def with_value_from_user(value); end
|
|
246
249
|
end
|
|
247
250
|
|
|
248
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
251
|
+
# source://activemodel//lib/active_model/attribute.rb#250
|
|
249
252
|
class ActiveModel::Attribute::Uninitialized < ::ActiveModel::Attribute
|
|
250
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
253
|
+
# source://activemodel//lib/active_model/attribute.rb#253
|
|
251
254
|
def initialize(name, type); end
|
|
252
255
|
|
|
253
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
256
|
+
# source://activemodel//lib/active_model/attribute.rb#274
|
|
254
257
|
def forgetting_assignment; end
|
|
255
258
|
|
|
256
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
259
|
+
# source://activemodel//lib/active_model/attribute.rb#270
|
|
257
260
|
def initialized?; end
|
|
258
261
|
|
|
259
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
262
|
+
# source://activemodel//lib/active_model/attribute.rb#263
|
|
260
263
|
def original_value; end
|
|
261
264
|
|
|
262
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
265
|
+
# source://activemodel//lib/active_model/attribute.rb#257
|
|
263
266
|
def value; end
|
|
264
267
|
|
|
265
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
268
|
+
# source://activemodel//lib/active_model/attribute.rb#267
|
|
266
269
|
def value_for_database; end
|
|
267
270
|
|
|
268
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
271
|
+
# source://activemodel//lib/active_model/attribute.rb#278
|
|
269
272
|
def with_type(type); end
|
|
270
273
|
end
|
|
271
274
|
|
|
272
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
275
|
+
# source://activemodel//lib/active_model/attribute.rb#251
|
|
273
276
|
ActiveModel::Attribute::Uninitialized::UNINITIALIZED_ORIGINAL_VALUE = T.let(T.unsafe(nil), Object)
|
|
274
277
|
|
|
275
278
|
# source://activemodel//lib/active_model/attribute/user_provided_default.rb#11
|
|
@@ -278,9 +281,12 @@ class ActiveModel::Attribute::UserProvidedDefault < ::ActiveModel::Attribute::Fr
|
|
|
278
281
|
def initialize(name, value, type, database_default); end
|
|
279
282
|
|
|
280
283
|
# source://activemodel//lib/active_model/attribute/user_provided_default.rb#29
|
|
284
|
+
def dup_or_share; end
|
|
285
|
+
|
|
286
|
+
# source://activemodel//lib/active_model/attribute/user_provided_default.rb#39
|
|
281
287
|
def marshal_dump; end
|
|
282
288
|
|
|
283
|
-
# source://activemodel//lib/active_model/attribute/user_provided_default.rb#
|
|
289
|
+
# source://activemodel//lib/active_model/attribute/user_provided_default.rb#50
|
|
284
290
|
def marshal_load(values); end
|
|
285
291
|
|
|
286
292
|
# source://activemodel//lib/active_model/attribute/user_provided_default.rb#17
|
|
@@ -291,16 +297,16 @@ class ActiveModel::Attribute::UserProvidedDefault < ::ActiveModel::Attribute::Fr
|
|
|
291
297
|
|
|
292
298
|
private
|
|
293
299
|
|
|
294
|
-
# source://activemodel//lib/active_model/attribute/user_provided_default.rb#
|
|
300
|
+
# source://activemodel//lib/active_model/attribute/user_provided_default.rb#62
|
|
295
301
|
def user_provided_value; end
|
|
296
302
|
end
|
|
297
303
|
|
|
298
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
304
|
+
# source://activemodel//lib/active_model/attribute.rb#220
|
|
299
305
|
class ActiveModel::Attribute::WithCastValue < ::ActiveModel::Attribute
|
|
300
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
306
|
+
# source://activemodel//lib/active_model/attribute.rb#225
|
|
301
307
|
def changed_in_place?; end
|
|
302
308
|
|
|
303
|
-
# source://activemodel//lib/active_model/attribute.rb#
|
|
309
|
+
# source://activemodel//lib/active_model/attribute.rb#221
|
|
304
310
|
def type_cast(value); end
|
|
305
311
|
end
|
|
306
312
|
|
|
@@ -340,23 +346,23 @@ module ActiveModel::AttributeMethods
|
|
|
340
346
|
# source://activemodel//lib/active_model/attribute_methods.rb#507
|
|
341
347
|
def method_missing(method, *_arg1, **_arg2, &_arg3); end
|
|
342
348
|
|
|
343
|
-
# source://activemodel//lib/active_model/attribute_methods.rb#
|
|
349
|
+
# source://activemodel//lib/active_model/attribute_methods.rb#536
|
|
344
350
|
def respond_to?(method, include_private_methods = T.unsafe(nil)); end
|
|
345
351
|
|
|
346
352
|
def respond_to_without_attributes?(*_arg0); end
|
|
347
353
|
|
|
348
354
|
private
|
|
349
355
|
|
|
350
|
-
# source://activemodel//lib/active_model/attribute_methods.rb#
|
|
356
|
+
# source://activemodel//lib/active_model/attribute_methods.rb#564
|
|
351
357
|
def _read_attribute(attr); end
|
|
352
358
|
|
|
353
|
-
# source://activemodel//lib/active_model/attribute_methods.rb#
|
|
359
|
+
# source://activemodel//lib/active_model/attribute_methods.rb#549
|
|
354
360
|
def attribute_method?(attr_name); end
|
|
355
361
|
|
|
356
|
-
# source://activemodel//lib/active_model/attribute_methods.rb#
|
|
362
|
+
# source://activemodel//lib/active_model/attribute_methods.rb#555
|
|
357
363
|
def matched_attribute_method(method_name); end
|
|
358
364
|
|
|
359
|
-
# source://activemodel//lib/active_model/attribute_methods.rb#
|
|
365
|
+
# source://activemodel//lib/active_model/attribute_methods.rb#560
|
|
360
366
|
def missing_attribute(attr_name, stack); end
|
|
361
367
|
|
|
362
368
|
module GeneratedClassMethods
|
|
@@ -376,15 +382,15 @@ module ActiveModel::AttributeMethods
|
|
|
376
382
|
end
|
|
377
383
|
end
|
|
378
384
|
|
|
379
|
-
# source://activemodel//lib/active_model/attribute_methods.rb#
|
|
385
|
+
# source://activemodel//lib/active_model/attribute_methods.rb#568
|
|
380
386
|
module ActiveModel::AttributeMethods::AttrNames
|
|
381
387
|
class << self
|
|
382
|
-
# source://activemodel//lib/active_model/attribute_methods.rb#
|
|
388
|
+
# source://activemodel//lib/active_model/attribute_methods.rb#585
|
|
383
389
|
def define_attribute_accessor_method(owner, attr_name, writer: T.unsafe(nil)); end
|
|
384
390
|
end
|
|
385
391
|
end
|
|
386
392
|
|
|
387
|
-
# source://activemodel//lib/active_model/attribute_methods.rb#
|
|
393
|
+
# source://activemodel//lib/active_model/attribute_methods.rb#569
|
|
388
394
|
ActiveModel::AttributeMethods::AttrNames::DEF_SAFE_NAME = T.let(T.unsafe(nil), Regexp)
|
|
389
395
|
|
|
390
396
|
# source://activemodel//lib/active_model/attribute_methods.rb#68
|
|
@@ -800,6 +806,7 @@ end
|
|
|
800
806
|
# source://activemodel//lib/active_model/attributes.rb#30
|
|
801
807
|
module ActiveModel::Attributes
|
|
802
808
|
extend ::ActiveSupport::Concern
|
|
809
|
+
extend ::ActiveSupport::Autoload
|
|
803
810
|
include GeneratedInstanceMethods
|
|
804
811
|
include ::ActiveModel::AttributeRegistration
|
|
805
812
|
include ::ActiveModel::AttributeMethods
|
|
@@ -866,6 +873,116 @@ module ActiveModel::Attributes::ClassMethods
|
|
|
866
873
|
def define_method_attribute=(canonical_name, owner:, as: T.unsafe(nil)); end
|
|
867
874
|
end
|
|
868
875
|
|
|
876
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#5
|
|
877
|
+
module ActiveModel::Attributes::Normalization
|
|
878
|
+
extend ::ActiveSupport::Concern
|
|
879
|
+
include GeneratedInstanceMethods
|
|
880
|
+
include ::ActiveModel::AttributeMethods
|
|
881
|
+
include ::ActiveModel::Dirty
|
|
882
|
+
include ::ActiveSupport::Callbacks
|
|
883
|
+
include ::ActiveModel::Validations::Callbacks
|
|
884
|
+
|
|
885
|
+
mixes_in_class_methods GeneratedClassMethods
|
|
886
|
+
mixes_in_class_methods ::ActiveModel::Attributes::Normalization::ClassMethods
|
|
887
|
+
mixes_in_class_methods ::ActiveModel::AttributeMethods::ClassMethods
|
|
888
|
+
mixes_in_class_methods ::ActiveModel::Validations::Callbacks::ClassMethods
|
|
889
|
+
mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods
|
|
890
|
+
mixes_in_class_methods ::ActiveSupport::DescendantsTracker
|
|
891
|
+
|
|
892
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#70
|
|
893
|
+
def normalize_attribute(name); end
|
|
894
|
+
|
|
895
|
+
private
|
|
896
|
+
|
|
897
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#140
|
|
898
|
+
def normalize_changed_in_place_attributes; end
|
|
899
|
+
|
|
900
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#147
|
|
901
|
+
def normalized_attribute_changed_in_place?(attribute); end
|
|
902
|
+
|
|
903
|
+
module GeneratedClassMethods
|
|
904
|
+
def __callbacks; end
|
|
905
|
+
def __callbacks=(value); end
|
|
906
|
+
def attribute_aliases; end
|
|
907
|
+
def attribute_aliases=(value); end
|
|
908
|
+
def attribute_aliases?; end
|
|
909
|
+
def attribute_method_patterns; end
|
|
910
|
+
def attribute_method_patterns=(value); end
|
|
911
|
+
def attribute_method_patterns?; end
|
|
912
|
+
def normalized_attributes; end
|
|
913
|
+
def normalized_attributes=(value); end
|
|
914
|
+
def normalized_attributes?; end
|
|
915
|
+
end
|
|
916
|
+
|
|
917
|
+
module GeneratedInstanceMethods
|
|
918
|
+
def __callbacks; end
|
|
919
|
+
def attribute_aliases; end
|
|
920
|
+
def attribute_aliases?; end
|
|
921
|
+
def attribute_method_patterns; end
|
|
922
|
+
def attribute_method_patterns?; end
|
|
923
|
+
def normalized_attributes; end
|
|
924
|
+
def normalized_attributes=(value); end
|
|
925
|
+
def normalized_attributes?; end
|
|
926
|
+
end
|
|
927
|
+
end
|
|
928
|
+
|
|
929
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#75
|
|
930
|
+
module ActiveModel::Attributes::Normalization::ClassMethods
|
|
931
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#134
|
|
932
|
+
def normalize_value_for(name, value); end
|
|
933
|
+
|
|
934
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#111
|
|
935
|
+
def normalizes(*names, with:, apply_to_nil: T.unsafe(nil)); end
|
|
936
|
+
end
|
|
937
|
+
|
|
938
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#151
|
|
939
|
+
class ActiveModel::Attributes::Normalization::NormalizedValueType
|
|
940
|
+
include ::ActiveModel::Type::SerializeCastValue
|
|
941
|
+
extend ::ActiveModel::Type::SerializeCastValue::ClassMethods
|
|
942
|
+
|
|
943
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#157
|
|
944
|
+
def initialize(cast_type:, normalizer:, normalize_nil:); end
|
|
945
|
+
|
|
946
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#176
|
|
947
|
+
def ==(other); end
|
|
948
|
+
|
|
949
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#164
|
|
950
|
+
def cast(value); end
|
|
951
|
+
|
|
952
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#154
|
|
953
|
+
def cast_type; end
|
|
954
|
+
|
|
955
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#176
|
|
956
|
+
def eql?(other); end
|
|
957
|
+
|
|
958
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#184
|
|
959
|
+
def hash; end
|
|
960
|
+
|
|
961
|
+
def inspect; end
|
|
962
|
+
|
|
963
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#154
|
|
964
|
+
def normalize_nil; end
|
|
965
|
+
|
|
966
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#154
|
|
967
|
+
def normalize_nil?; end
|
|
968
|
+
|
|
969
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#154
|
|
970
|
+
def normalizer; end
|
|
971
|
+
|
|
972
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#168
|
|
973
|
+
def serialize(value); end
|
|
974
|
+
|
|
975
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#172
|
|
976
|
+
def serialize_cast_value(value); end
|
|
977
|
+
|
|
978
|
+
private
|
|
979
|
+
|
|
980
|
+
def instance_variables_to_inspect; end
|
|
981
|
+
|
|
982
|
+
# source://activemodel//lib/active_model/attributes/normalization.rb#196
|
|
983
|
+
def normalize(value); end
|
|
984
|
+
end
|
|
985
|
+
|
|
869
986
|
# source://activemodel//lib/active_model/validator.rb#179
|
|
870
987
|
class ActiveModel::BlockValidator < ::ActiveModel::EachValidator
|
|
871
988
|
# source://activemodel//lib/active_model/validator.rb#180
|
|
@@ -1065,221 +1182,220 @@ class ActiveModel::EachValidator < ::ActiveModel::Validator
|
|
|
1065
1182
|
def prepare_value_for_validation(value, record, attr_name); end
|
|
1066
1183
|
end
|
|
1067
1184
|
|
|
1068
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1185
|
+
# source://activemodel//lib/active_model/error.rb#8
|
|
1069
1186
|
class ActiveModel::Error
|
|
1070
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1187
|
+
# source://activemodel//lib/active_model/error.rb#102
|
|
1071
1188
|
def initialize(base, attribute, type = T.unsafe(nil), **options); end
|
|
1072
1189
|
|
|
1073
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1190
|
+
# source://activemodel//lib/active_model/error.rb#189
|
|
1074
1191
|
def ==(other); end
|
|
1075
1192
|
|
|
1076
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1193
|
+
# source://activemodel//lib/active_model/error.rb#120
|
|
1077
1194
|
def attribute; end
|
|
1078
1195
|
|
|
1079
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1196
|
+
# source://activemodel//lib/active_model/error.rb#118
|
|
1080
1197
|
def base; end
|
|
1081
1198
|
|
|
1082
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1199
|
+
# source://activemodel//lib/active_model/error.rb#148
|
|
1083
1200
|
def detail; end
|
|
1084
1201
|
|
|
1085
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1202
|
+
# source://activemodel//lib/active_model/error.rb#148
|
|
1086
1203
|
def details; end
|
|
1087
1204
|
|
|
1088
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1205
|
+
# source://activemodel//lib/active_model/error.rb#189
|
|
1089
1206
|
def eql?(other); end
|
|
1090
1207
|
|
|
1091
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1208
|
+
# source://activemodel//lib/active_model/error.rb#158
|
|
1092
1209
|
def full_message; end
|
|
1093
1210
|
|
|
1094
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1211
|
+
# source://activemodel//lib/active_model/error.rb#194
|
|
1095
1212
|
def hash; end
|
|
1096
1213
|
|
|
1097
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1214
|
+
# source://activemodel//lib/active_model/error.rb#12
|
|
1098
1215
|
def i18n_customize_full_message; end
|
|
1099
1216
|
|
|
1100
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1217
|
+
# source://activemodel//lib/active_model/error.rb#12
|
|
1101
1218
|
def i18n_customize_full_message=(_arg0); end
|
|
1102
1219
|
|
|
1103
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1220
|
+
# source://activemodel//lib/active_model/error.rb#12
|
|
1104
1221
|
def i18n_customize_full_message?; end
|
|
1105
1222
|
|
|
1106
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1223
|
+
# source://activemodel//lib/active_model/error.rb#198
|
|
1107
1224
|
def inspect; end
|
|
1108
1225
|
|
|
1109
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1226
|
+
# source://activemodel//lib/active_model/error.rb#165
|
|
1110
1227
|
def match?(attribute, type = T.unsafe(nil), **options); end
|
|
1111
1228
|
|
|
1112
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1229
|
+
# source://activemodel//lib/active_model/error.rb#134
|
|
1113
1230
|
def message; end
|
|
1114
1231
|
|
|
1115
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1232
|
+
# source://activemodel//lib/active_model/error.rb#127
|
|
1116
1233
|
def options; end
|
|
1117
1234
|
|
|
1118
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1235
|
+
# source://activemodel//lib/active_model/error.rb#125
|
|
1119
1236
|
def raw_type; end
|
|
1120
1237
|
|
|
1121
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1238
|
+
# source://activemodel//lib/active_model/error.rb#183
|
|
1122
1239
|
def strict_match?(attribute, type, **options); end
|
|
1123
1240
|
|
|
1124
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1241
|
+
# source://activemodel//lib/active_model/error.rb#122
|
|
1125
1242
|
def type; end
|
|
1126
1243
|
|
|
1127
1244
|
protected
|
|
1128
1245
|
|
|
1129
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1246
|
+
# source://activemodel//lib/active_model/error.rb#203
|
|
1130
1247
|
def attributes_for_hash; end
|
|
1131
1248
|
|
|
1132
1249
|
private
|
|
1133
1250
|
|
|
1134
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1251
|
+
# source://activemodel//lib/active_model/error.rb#110
|
|
1135
1252
|
def initialize_dup(other); end
|
|
1136
1253
|
|
|
1137
1254
|
class << self
|
|
1138
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1255
|
+
# source://activemodel//lib/active_model/error.rb#14
|
|
1139
1256
|
def full_message(attribute, message, base); end
|
|
1140
1257
|
|
|
1141
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1258
|
+
# source://activemodel//lib/active_model/error.rb#63
|
|
1142
1259
|
def generate_message(attribute, type, base, options); end
|
|
1143
1260
|
|
|
1144
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1261
|
+
# source://activemodel//lib/active_model/error.rb#12
|
|
1145
1262
|
def i18n_customize_full_message; end
|
|
1146
1263
|
|
|
1147
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1264
|
+
# source://activemodel//lib/active_model/error.rb#12
|
|
1148
1265
|
def i18n_customize_full_message=(value); end
|
|
1149
1266
|
|
|
1150
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1267
|
+
# source://activemodel//lib/active_model/error.rb#12
|
|
1151
1268
|
def i18n_customize_full_message?; end
|
|
1152
1269
|
|
|
1153
1270
|
private
|
|
1154
1271
|
|
|
1155
|
-
# source://activesupport/8.
|
|
1272
|
+
# source://activesupport/8.1.4.1/lib/active_support/class_attribute.rb#15
|
|
1156
1273
|
def __class_attr_i18n_customize_full_message; end
|
|
1157
1274
|
|
|
1158
|
-
# source://activesupport/8.
|
|
1275
|
+
# source://activesupport/8.1.4.1/lib/active_support/class_attribute.rb#17
|
|
1159
1276
|
def __class_attr_i18n_customize_full_message=(new_value); end
|
|
1160
1277
|
end
|
|
1161
1278
|
end
|
|
1162
1279
|
|
|
1163
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1280
|
+
# source://activemodel//lib/active_model/error.rb#9
|
|
1164
1281
|
ActiveModel::Error::CALLBACKS_OPTIONS = T.let(T.unsafe(nil), Array)
|
|
1165
1282
|
|
|
1166
|
-
# source://activemodel//lib/active_model/error.rb#
|
|
1283
|
+
# source://activemodel//lib/active_model/error.rb#10
|
|
1167
1284
|
ActiveModel::Error::MESSAGE_OPTIONS = T.let(T.unsafe(nil), Array)
|
|
1168
1285
|
|
|
1169
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1286
|
+
# source://activemodel//lib/active_model/errors.rb#60
|
|
1170
1287
|
class ActiveModel::Errors
|
|
1171
1288
|
include ::Enumerable
|
|
1172
|
-
extend ::Forwardable
|
|
1173
1289
|
|
|
1174
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1290
|
+
# source://activemodel//lib/active_model/errors.rb#114
|
|
1175
1291
|
def initialize(base); end
|
|
1176
1292
|
|
|
1177
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1293
|
+
# source://activemodel//lib/active_model/errors.rb#227
|
|
1178
1294
|
def [](attribute); end
|
|
1179
1295
|
|
|
1180
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1296
|
+
# source://activemodel//lib/active_model/errors.rb#340
|
|
1181
1297
|
def add(attribute, type = T.unsafe(nil), **options); end
|
|
1182
1298
|
|
|
1183
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1299
|
+
# source://activemodel//lib/active_model/errors.rb#370
|
|
1184
1300
|
def added?(attribute, type = T.unsafe(nil), options = T.unsafe(nil)); end
|
|
1185
1301
|
|
|
1186
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1302
|
+
# source://activemodel//lib/active_model/errors.rb#245
|
|
1187
1303
|
def as_json(options = T.unsafe(nil)); end
|
|
1188
1304
|
|
|
1189
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1305
|
+
# source://activemodel//lib/active_model/errors.rb#235
|
|
1190
1306
|
def attribute_names; end
|
|
1191
1307
|
|
|
1192
|
-
# source://
|
|
1193
|
-
def clear(*
|
|
1308
|
+
# source://activemodel//lib/active_model/errors.rb#100
|
|
1309
|
+
def clear(*_arg0, **_arg1, &_arg2); end
|
|
1194
1310
|
|
|
1195
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1311
|
+
# source://activemodel//lib/active_model/errors.rb#135
|
|
1196
1312
|
def copy!(other); end
|
|
1197
1313
|
|
|
1198
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1314
|
+
# source://activemodel//lib/active_model/errors.rb#213
|
|
1199
1315
|
def delete(attribute, type = T.unsafe(nil), **options); end
|
|
1200
1316
|
|
|
1201
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1317
|
+
# source://activemodel//lib/active_model/errors.rb#274
|
|
1202
1318
|
def details; end
|
|
1203
1319
|
|
|
1204
|
-
# source://
|
|
1205
|
-
def each(*
|
|
1320
|
+
# source://activemodel//lib/active_model/errors.rb#100
|
|
1321
|
+
def each(*_arg0, **_arg1, &_arg2); end
|
|
1206
1322
|
|
|
1207
|
-
# source://
|
|
1208
|
-
def empty?(*
|
|
1323
|
+
# source://activemodel//lib/active_model/errors.rb#100
|
|
1324
|
+
def empty?(*_arg0, **_arg1, &_arg2); end
|
|
1209
1325
|
|
|
1210
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1326
|
+
# source://activemodel//lib/active_model/errors.rb#104
|
|
1211
1327
|
def errors; end
|
|
1212
1328
|
|
|
1213
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1329
|
+
# source://activemodel//lib/active_model/errors.rb#449
|
|
1214
1330
|
def full_message(attribute, message); end
|
|
1215
1331
|
|
|
1216
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1332
|
+
# source://activemodel//lib/active_model/errors.rb#413
|
|
1217
1333
|
def full_messages; end
|
|
1218
1334
|
|
|
1219
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1335
|
+
# source://activemodel//lib/active_model/errors.rb#428
|
|
1220
1336
|
def full_messages_for(attribute); end
|
|
1221
1337
|
|
|
1222
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1338
|
+
# source://activemodel//lib/active_model/errors.rb#477
|
|
1223
1339
|
def generate_message(attribute, type = T.unsafe(nil), options = T.unsafe(nil)); end
|
|
1224
1340
|
|
|
1225
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1341
|
+
# source://activemodel//lib/active_model/errors.rb#287
|
|
1226
1342
|
def group_by_attribute; end
|
|
1227
1343
|
|
|
1228
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1344
|
+
# source://activemodel//lib/active_model/errors.rb#200
|
|
1229
1345
|
def has_key?(attribute); end
|
|
1230
1346
|
|
|
1231
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1347
|
+
# source://activemodel//lib/active_model/errors.rb#151
|
|
1232
1348
|
def import(error, override_options = T.unsafe(nil)); end
|
|
1233
1349
|
|
|
1234
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1350
|
+
# source://activemodel//lib/active_model/errors.rb#200
|
|
1235
1351
|
def include?(attribute); end
|
|
1236
1352
|
|
|
1237
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1353
|
+
# source://activemodel//lib/active_model/errors.rb#481
|
|
1238
1354
|
def inspect; end
|
|
1239
1355
|
|
|
1240
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1356
|
+
# source://activemodel//lib/active_model/errors.rb#200
|
|
1241
1357
|
def key?(attribute); end
|
|
1242
1358
|
|
|
1243
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1359
|
+
# source://activemodel//lib/active_model/errors.rb#172
|
|
1244
1360
|
def merge!(other); end
|
|
1245
1361
|
|
|
1246
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1362
|
+
# source://activemodel//lib/active_model/errors.rb#266
|
|
1247
1363
|
def messages; end
|
|
1248
1364
|
|
|
1249
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1365
|
+
# source://activemodel//lib/active_model/errors.rb#442
|
|
1250
1366
|
def messages_for(attribute); end
|
|
1251
1367
|
|
|
1252
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1368
|
+
# source://activemodel//lib/active_model/errors.rb#104
|
|
1253
1369
|
def objects; end
|
|
1254
1370
|
|
|
1255
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1371
|
+
# source://activemodel//lib/active_model/errors.rb#393
|
|
1256
1372
|
def of_kind?(attribute, type = T.unsafe(nil)); end
|
|
1257
1373
|
|
|
1258
|
-
# source://
|
|
1259
|
-
def size(*
|
|
1374
|
+
# source://activemodel//lib/active_model/errors.rb#100
|
|
1375
|
+
def size(*_arg0, **_arg1, &_arg2); end
|
|
1260
1376
|
|
|
1261
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1377
|
+
# source://activemodel//lib/active_model/errors.rb#413
|
|
1262
1378
|
def to_a; end
|
|
1263
1379
|
|
|
1264
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1380
|
+
# source://activemodel//lib/active_model/errors.rb#254
|
|
1265
1381
|
def to_hash(full_messages = T.unsafe(nil)); end
|
|
1266
1382
|
|
|
1267
|
-
# source://
|
|
1268
|
-
def uniq!(*
|
|
1383
|
+
# source://activemodel//lib/active_model/errors.rb#100
|
|
1384
|
+
def uniq!(*_arg0, **_arg1, &_arg2); end
|
|
1269
1385
|
|
|
1270
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1386
|
+
# source://activemodel//lib/active_model/errors.rb#187
|
|
1271
1387
|
def where(attribute, type = T.unsafe(nil), **options); end
|
|
1272
1388
|
|
|
1273
1389
|
private
|
|
1274
1390
|
|
|
1275
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1391
|
+
# source://activemodel//lib/active_model/errors.rb#119
|
|
1276
1392
|
def initialize_dup(other); end
|
|
1277
1393
|
|
|
1278
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1394
|
+
# source://activemodel//lib/active_model/errors.rb#488
|
|
1279
1395
|
def normalize_arguments(attribute, type, **options); end
|
|
1280
1396
|
end
|
|
1281
1397
|
|
|
1282
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1398
|
+
# source://activemodel//lib/active_model/errors.rb#263
|
|
1283
1399
|
ActiveModel::Errors::EMPTY_ARRAY = T.let(T.unsafe(nil), Array)
|
|
1284
1400
|
|
|
1285
1401
|
# source://activemodel//lib/active_model/forbidden_attributes_protection.rb#18
|
|
@@ -1472,10 +1588,13 @@ module ActiveModel::Lint::Tests
|
|
|
1472
1588
|
|
|
1473
1589
|
private
|
|
1474
1590
|
|
|
1475
|
-
# source://activemodel//lib/active_model/lint.rb#
|
|
1591
|
+
# source://activemodel//lib/active_model/lint.rb#117
|
|
1476
1592
|
def assert_boolean(result, name); end
|
|
1477
1593
|
|
|
1478
1594
|
# source://activemodel//lib/active_model/lint.rb#108
|
|
1595
|
+
def def_method(receiver, name, &block); end
|
|
1596
|
+
|
|
1597
|
+
# source://activemodel//lib/active_model/lint.rb#112
|
|
1479
1598
|
def model; end
|
|
1480
1599
|
end
|
|
1481
1600
|
|
|
@@ -1521,172 +1640,170 @@ module ActiveModel::Model
|
|
|
1521
1640
|
end
|
|
1522
1641
|
end
|
|
1523
1642
|
|
|
1524
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1643
|
+
# source://activemodel//lib/active_model/naming.rb#8
|
|
1525
1644
|
class ActiveModel::Name
|
|
1526
1645
|
include ::Comparable
|
|
1527
1646
|
|
|
1528
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1647
|
+
# source://activemodel//lib/active_model/naming.rb#165
|
|
1529
1648
|
def initialize(klass, namespace = T.unsafe(nil), name = T.unsafe(nil), locale = T.unsafe(nil)); end
|
|
1530
1649
|
|
|
1531
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1650
|
+
# source://activemodel//lib/active_model/naming.rb#150
|
|
1532
1651
|
def !~(*_arg0, **_arg1, &_arg2); end
|
|
1533
1652
|
|
|
1534
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1653
|
+
# source://activemodel//lib/active_model/naming.rb#150
|
|
1535
1654
|
def <=>(*_arg0, **_arg1, &_arg2); end
|
|
1536
1655
|
|
|
1537
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1656
|
+
# source://activemodel//lib/active_model/naming.rb#150
|
|
1538
1657
|
def ==(arg); end
|
|
1539
1658
|
|
|
1540
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1659
|
+
# source://activemodel//lib/active_model/naming.rb#150
|
|
1541
1660
|
def ===(arg); end
|
|
1542
1661
|
|
|
1543
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1662
|
+
# source://activemodel//lib/active_model/naming.rb#150
|
|
1544
1663
|
def =~(*_arg0, **_arg1, &_arg2); end
|
|
1545
1664
|
|
|
1546
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1665
|
+
# source://activemodel//lib/active_model/naming.rb#150
|
|
1547
1666
|
def as_json(*_arg0, **_arg1, &_arg2); end
|
|
1548
1667
|
|
|
1549
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1668
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1550
1669
|
def cache_key; end
|
|
1551
1670
|
|
|
1552
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1671
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1553
1672
|
def collection; end
|
|
1554
1673
|
|
|
1555
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1674
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1556
1675
|
def collection=(_arg0); end
|
|
1557
1676
|
|
|
1558
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1677
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1559
1678
|
def element; end
|
|
1560
1679
|
|
|
1561
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1680
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1562
1681
|
def element=(_arg0); end
|
|
1563
1682
|
|
|
1564
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1683
|
+
# source://activemodel//lib/active_model/naming.rb#150
|
|
1565
1684
|
def eql?(*_arg0, **_arg1, &_arg2); end
|
|
1566
1685
|
|
|
1567
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1686
|
+
# source://activemodel//lib/active_model/naming.rb#196
|
|
1568
1687
|
def human(options = T.unsafe(nil)); end
|
|
1569
1688
|
|
|
1570
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1689
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1571
1690
|
def i18n_key; end
|
|
1572
1691
|
|
|
1573
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1692
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1574
1693
|
def i18n_key=(_arg0); end
|
|
1575
1694
|
|
|
1576
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1695
|
+
# source://activemodel//lib/active_model/naming.rb#150
|
|
1577
1696
|
def match?(*_arg0, **_arg1, &_arg2); end
|
|
1578
1697
|
|
|
1579
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1698
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1580
1699
|
def name; end
|
|
1581
1700
|
|
|
1582
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1701
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1583
1702
|
def name=(_arg0); end
|
|
1584
1703
|
|
|
1585
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1704
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1586
1705
|
def param_key; end
|
|
1587
1706
|
|
|
1588
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1707
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1589
1708
|
def param_key=(_arg0); end
|
|
1590
1709
|
|
|
1591
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1710
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1592
1711
|
def plural; end
|
|
1593
1712
|
|
|
1594
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1713
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1595
1714
|
def plural=(_arg0); end
|
|
1596
1715
|
|
|
1597
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1716
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1598
1717
|
def route_key; end
|
|
1599
1718
|
|
|
1600
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1719
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1601
1720
|
def route_key=(_arg0); end
|
|
1602
1721
|
|
|
1603
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1722
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1604
1723
|
def singular; end
|
|
1605
1724
|
|
|
1606
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1725
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1607
1726
|
def singular=(_arg0); end
|
|
1608
1727
|
|
|
1609
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1728
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1610
1729
|
def singular_route_key; end
|
|
1611
1730
|
|
|
1612
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1731
|
+
# source://activemodel//lib/active_model/naming.rb#11
|
|
1613
1732
|
def singular_route_key=(_arg0); end
|
|
1614
1733
|
|
|
1615
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1734
|
+
# source://activemodel//lib/active_model/naming.rb#150
|
|
1616
1735
|
def to_s(*_arg0, **_arg1, &_arg2); end
|
|
1617
1736
|
|
|
1618
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1737
|
+
# source://activemodel//lib/active_model/naming.rb#150
|
|
1619
1738
|
def to_str(*_arg0, **_arg1, &_arg2); end
|
|
1620
1739
|
|
|
1621
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1740
|
+
# source://activemodel//lib/active_model/naming.rb#208
|
|
1622
1741
|
def uncountable?; end
|
|
1623
1742
|
|
|
1624
1743
|
private
|
|
1625
1744
|
|
|
1626
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1745
|
+
# source://activemodel//lib/active_model/naming.rb#215
|
|
1627
1746
|
def _singularize(string); end
|
|
1628
1747
|
|
|
1629
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1748
|
+
# source://activemodel//lib/active_model/naming.rb#219
|
|
1630
1749
|
def i18n_keys; end
|
|
1631
1750
|
|
|
1632
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1751
|
+
# source://activemodel//lib/active_model/naming.rb#227
|
|
1633
1752
|
def i18n_scope; end
|
|
1634
1753
|
end
|
|
1635
1754
|
|
|
1636
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1755
|
+
# source://activemodel//lib/active_model/naming.rb#213
|
|
1637
1756
|
ActiveModel::Name::MISSING_TRANSLATION = T.let(T.unsafe(nil), Integer)
|
|
1638
1757
|
|
|
1639
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1758
|
+
# source://activemodel//lib/active_model/naming.rb#251
|
|
1640
1759
|
module ActiveModel::Naming
|
|
1641
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1760
|
+
# source://activemodel//lib/active_model/naming.rb#269
|
|
1642
1761
|
def model_name; end
|
|
1643
1762
|
|
|
1644
1763
|
private
|
|
1645
1764
|
|
|
1646
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1765
|
+
# source://activemodel//lib/active_model/naming.rb#351
|
|
1647
1766
|
def inherited(base); end
|
|
1648
1767
|
|
|
1649
1768
|
class << self
|
|
1650
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1769
|
+
# source://activemodel//lib/active_model/naming.rb#252
|
|
1651
1770
|
def extended(base); end
|
|
1652
1771
|
|
|
1653
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1772
|
+
# source://activemodel//lib/active_model/naming.rb#337
|
|
1654
1773
|
def param_key(record_or_class); end
|
|
1655
1774
|
|
|
1656
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1775
|
+
# source://activemodel//lib/active_model/naming.rb#282
|
|
1657
1776
|
def plural(record_or_class); end
|
|
1658
1777
|
|
|
1659
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1778
|
+
# source://activemodel//lib/active_model/naming.rb#325
|
|
1660
1779
|
def route_key(record_or_class); end
|
|
1661
1780
|
|
|
1662
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1781
|
+
# source://activemodel//lib/active_model/naming.rb#290
|
|
1663
1782
|
def singular(record_or_class); end
|
|
1664
1783
|
|
|
1665
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1784
|
+
# source://activemodel//lib/active_model/naming.rb#310
|
|
1666
1785
|
def singular_route_key(record_or_class); end
|
|
1667
1786
|
|
|
1668
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1787
|
+
# source://activemodel//lib/active_model/naming.rb#298
|
|
1669
1788
|
def uncountable?(record_or_class); end
|
|
1670
1789
|
|
|
1671
1790
|
private
|
|
1672
1791
|
|
|
1673
|
-
# source://activemodel//lib/active_model/naming.rb#
|
|
1792
|
+
# source://activemodel//lib/active_model/naming.rb#341
|
|
1674
1793
|
def model_name_from_record_or_class(record_or_class); end
|
|
1675
1794
|
end
|
|
1676
1795
|
end
|
|
1677
1796
|
|
|
1678
|
-
# source://activemodel//lib/active_model/nested_error.rb#
|
|
1797
|
+
# source://activemodel//lib/active_model/nested_error.rb#6
|
|
1679
1798
|
class ActiveModel::NestedError < ::ActiveModel::Error
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
# source://activemodel//lib/active_model/nested_error.rb#8
|
|
1799
|
+
# source://activemodel//lib/active_model/nested_error.rb#7
|
|
1683
1800
|
def initialize(base, inner_error, override_options = T.unsafe(nil)); end
|
|
1684
1801
|
|
|
1685
|
-
# source://activemodel//lib/active_model/nested_error.rb#
|
|
1802
|
+
# source://activemodel//lib/active_model/nested_error.rb#16
|
|
1686
1803
|
def inner_error; end
|
|
1687
1804
|
|
|
1688
|
-
# source://
|
|
1689
|
-
def message(*
|
|
1805
|
+
# source://activemodel//lib/active_model/nested_error.rb#18
|
|
1806
|
+
def message(*_arg0, **_arg1, &_arg2); end
|
|
1690
1807
|
end
|
|
1691
1808
|
|
|
1692
1809
|
# source://activemodel//lib/active_model/attribute_mutation_tracker.rb#156
|
|
@@ -1726,59 +1843,63 @@ class ActiveModel::NullMutationTracker
|
|
|
1726
1843
|
end
|
|
1727
1844
|
end
|
|
1728
1845
|
|
|
1729
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1846
|
+
# source://activemodel//lib/active_model/errors.rb#521
|
|
1730
1847
|
class ActiveModel::RangeError < ::RangeError; end
|
|
1731
1848
|
|
|
1732
|
-
# source://activemodel//lib/active_model/secure_password.rb#
|
|
1849
|
+
# source://activemodel//lib/active_model/secure_password.rb#6
|
|
1733
1850
|
module ActiveModel::SecurePassword
|
|
1734
1851
|
extend ::ActiveSupport::Concern
|
|
1735
1852
|
|
|
1736
1853
|
mixes_in_class_methods ::ActiveModel::SecurePassword::ClassMethods
|
|
1737
1854
|
|
|
1738
1855
|
class << self
|
|
1739
|
-
# source://activemodel//lib/active_model/secure_password.rb#
|
|
1856
|
+
# source://activemodel//lib/active_model/secure_password.rb#17
|
|
1740
1857
|
def min_cost; end
|
|
1741
1858
|
|
|
1742
|
-
# source://activemodel//lib/active_model/secure_password.rb#
|
|
1859
|
+
# source://activemodel//lib/active_model/secure_password.rb#17
|
|
1743
1860
|
def min_cost=(_arg0); end
|
|
1744
1861
|
end
|
|
1745
1862
|
end
|
|
1746
1863
|
|
|
1747
|
-
# source://activemodel//lib/active_model/secure_password.rb#
|
|
1864
|
+
# source://activemodel//lib/active_model/secure_password.rb#21
|
|
1748
1865
|
module ActiveModel::SecurePassword::ClassMethods
|
|
1749
|
-
# source://activemodel//lib/active_model/secure_password.rb#
|
|
1866
|
+
# source://activemodel//lib/active_model/secure_password.rb#125
|
|
1750
1867
|
def has_secure_password(attribute = T.unsafe(nil), validations: T.unsafe(nil), reset_token: T.unsafe(nil)); end
|
|
1751
1868
|
end
|
|
1752
1869
|
|
|
1753
|
-
# source://activemodel//lib/active_model/secure_password.rb#
|
|
1870
|
+
# source://activemodel//lib/active_model/secure_password.rb#14
|
|
1871
|
+
ActiveModel::SecurePassword::DEFAULT_RESET_TOKEN_EXPIRES_IN = T.let(T.unsafe(nil), ActiveSupport::Duration)
|
|
1872
|
+
|
|
1873
|
+
# source://activemodel//lib/active_model/secure_password.rb#196
|
|
1754
1874
|
class ActiveModel::SecurePassword::InstanceMethodsOnActivation < ::Module
|
|
1755
|
-
# source://activemodel//lib/active_model/secure_password.rb#
|
|
1875
|
+
# source://activemodel//lib/active_model/secure_password.rb#197
|
|
1756
1876
|
def initialize(attribute, reset_token:); end
|
|
1757
1877
|
end
|
|
1758
1878
|
|
|
1759
|
-
# source://activemodel//lib/active_model/secure_password.rb#
|
|
1879
|
+
# source://activemodel//lib/active_model/secure_password.rb#12
|
|
1760
1880
|
ActiveModel::SecurePassword::MAX_PASSWORD_LENGTH_ALLOWED = T.let(T.unsafe(nil), Integer)
|
|
1761
1881
|
|
|
1762
1882
|
# source://activemodel//lib/active_model/serialization.rb#69
|
|
1763
1883
|
module ActiveModel::Serialization
|
|
1764
|
-
|
|
1884
|
+
# source://activemodel//lib/active_model/serialization.rb#167
|
|
1885
|
+
def read_attribute_for_serialization(key); end
|
|
1765
1886
|
|
|
1766
1887
|
# source://activemodel//lib/active_model/serialization.rb#125
|
|
1767
1888
|
def serializable_hash(options = T.unsafe(nil)); end
|
|
1768
1889
|
|
|
1769
1890
|
private
|
|
1770
1891
|
|
|
1771
|
-
# source://activemodel//lib/active_model/serialization.rb#
|
|
1892
|
+
# source://activemodel//lib/active_model/serialization.rb#172
|
|
1772
1893
|
def attribute_names_for_serialization; end
|
|
1773
1894
|
|
|
1774
|
-
# source://activemodel//lib/active_model/serialization.rb#
|
|
1895
|
+
# source://activemodel//lib/active_model/serialization.rb#186
|
|
1775
1896
|
def serializable_add_includes(options = T.unsafe(nil)); end
|
|
1776
1897
|
|
|
1777
|
-
# source://activemodel//lib/active_model/serialization.rb#
|
|
1898
|
+
# source://activemodel//lib/active_model/serialization.rb#176
|
|
1778
1899
|
def serializable_attributes(attribute_names); end
|
|
1779
1900
|
end
|
|
1780
1901
|
|
|
1781
|
-
# source://activemodel//lib/active_model.rb#
|
|
1902
|
+
# source://activemodel//lib/active_model.rb#74
|
|
1782
1903
|
module ActiveModel::Serializers
|
|
1783
1904
|
extend ::ActiveSupport::Autoload
|
|
1784
1905
|
end
|
|
@@ -1810,7 +1931,7 @@ module ActiveModel::Serializers::JSON
|
|
|
1810
1931
|
end
|
|
1811
1932
|
end
|
|
1812
1933
|
|
|
1813
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
1934
|
+
# source://activemodel//lib/active_model/errors.rb#515
|
|
1814
1935
|
class ActiveModel::StrictValidationFailed < ::StandardError; end
|
|
1815
1936
|
|
|
1816
1937
|
# source://activemodel//lib/active_model/translation.rb#22
|
|
@@ -1860,12 +1981,18 @@ end
|
|
|
1860
1981
|
|
|
1861
1982
|
# source://activemodel//lib/active_model/type/big_integer.rb#25
|
|
1862
1983
|
class ActiveModel::Type::BigInteger < ::ActiveModel::Type::Integer
|
|
1984
|
+
# source://activemodel//lib/active_model/type/big_integer.rb#47
|
|
1985
|
+
def serializable?(value, &_arg1); end
|
|
1986
|
+
|
|
1863
1987
|
# source://activemodel//lib/active_model/type/big_integer.rb#26
|
|
1988
|
+
def serialize(value); end
|
|
1989
|
+
|
|
1990
|
+
# source://activemodel//lib/active_model/type/big_integer.rb#43
|
|
1864
1991
|
def serialize_cast_value(value); end
|
|
1865
1992
|
|
|
1866
1993
|
private
|
|
1867
1994
|
|
|
1868
|
-
# source://activemodel//lib/active_model/type/big_integer.rb#
|
|
1995
|
+
# source://activemodel//lib/active_model/type/big_integer.rb#52
|
|
1869
1996
|
def max_value; end
|
|
1870
1997
|
end
|
|
1871
1998
|
|
|
@@ -1907,121 +2034,129 @@ end
|
|
|
1907
2034
|
|
|
1908
2035
|
# source://activemodel//lib/active_model/type/boolean.rb#14
|
|
1909
2036
|
class ActiveModel::Type::Boolean < ::ActiveModel::Type::Value
|
|
1910
|
-
|
|
2037
|
+
include ::ActiveModel::Type::Helpers::Immutable
|
|
2038
|
+
|
|
2039
|
+
# source://activemodel//lib/active_model/type/boolean.rb#31
|
|
1911
2040
|
def serialize(value); end
|
|
1912
2041
|
|
|
1913
|
-
# source://activemodel//lib/active_model/type/boolean.rb#
|
|
2042
|
+
# source://activemodel//lib/active_model/type/boolean.rb#35
|
|
1914
2043
|
def serialize_cast_value(value); end
|
|
1915
2044
|
|
|
1916
|
-
# source://activemodel//lib/active_model/type/boolean.rb#
|
|
2045
|
+
# source://activemodel//lib/active_model/type/boolean.rb#27
|
|
1917
2046
|
def type; end
|
|
1918
2047
|
|
|
1919
2048
|
private
|
|
1920
2049
|
|
|
1921
|
-
# source://activemodel//lib/active_model/type/boolean.rb#
|
|
2050
|
+
# source://activemodel//lib/active_model/type/boolean.rb#40
|
|
1922
2051
|
def cast_value(value); end
|
|
1923
2052
|
end
|
|
1924
2053
|
|
|
1925
|
-
# source://activemodel//lib/active_model/type/boolean.rb#
|
|
2054
|
+
# source://activemodel//lib/active_model/type/boolean.rb#16
|
|
1926
2055
|
ActiveModel::Type::Boolean::FALSE_VALUES = T.let(T.unsafe(nil), Set)
|
|
1927
2056
|
|
|
1928
2057
|
# source://activemodel//lib/active_model/type/date.rb#26
|
|
1929
2058
|
class ActiveModel::Type::Date < ::ActiveModel::Type::Value
|
|
2059
|
+
include ::ActiveModel::Type::Helpers::Immutable
|
|
1930
2060
|
include ::ActiveModel::Type::Helpers::Timezone
|
|
1931
2061
|
include ::ActiveModel::Type::Helpers::AcceptsMultiparameterTime::InstanceMethods
|
|
1932
2062
|
|
|
1933
|
-
# source://activemodel//lib/active_model/type/date.rb#
|
|
2063
|
+
# source://activemodel//lib/active_model/type/date.rb#31
|
|
1934
2064
|
def type; end
|
|
1935
2065
|
|
|
1936
|
-
# source://activemodel//lib/active_model/type/date.rb#
|
|
2066
|
+
# source://activemodel//lib/active_model/type/date.rb#35
|
|
1937
2067
|
def type_cast_for_schema(value); end
|
|
1938
2068
|
|
|
1939
2069
|
private
|
|
1940
2070
|
|
|
1941
|
-
# source://activemodel//lib/active_model/type/date.rb#
|
|
2071
|
+
# source://activemodel//lib/active_model/type/date.rb#40
|
|
1942
2072
|
def cast_value(value); end
|
|
1943
2073
|
|
|
1944
|
-
# source://activemodel//lib/active_model/type/date.rb#
|
|
2074
|
+
# source://activemodel//lib/active_model/type/date.rb#58
|
|
1945
2075
|
def fallback_string_to_date(string); end
|
|
1946
2076
|
|
|
1947
|
-
# source://activemodel//lib/active_model/type/date.rb#
|
|
2077
|
+
# source://activemodel//lib/active_model/type/date.rb#52
|
|
1948
2078
|
def fast_string_to_date(string); end
|
|
1949
2079
|
|
|
1950
|
-
# source://activemodel//lib/active_model/type/date.rb#
|
|
2080
|
+
# source://activemodel//lib/active_model/type/date.rb#67
|
|
1951
2081
|
def new_date(year, mon, mday); end
|
|
1952
2082
|
|
|
1953
|
-
# source://activemodel//lib/active_model/type/date.rb#
|
|
2083
|
+
# source://activemodel//lib/active_model/type/date.rb#73
|
|
1954
2084
|
def value_from_multiparameter_assignment(*_arg0); end
|
|
1955
2085
|
end
|
|
1956
2086
|
|
|
1957
|
-
# source://activemodel//lib/active_model/type/date.rb#
|
|
2087
|
+
# source://activemodel//lib/active_model/type/date.rb#51
|
|
1958
2088
|
ActiveModel::Type::Date::ISO_DATE = T.let(T.unsafe(nil), Regexp)
|
|
1959
2089
|
|
|
1960
|
-
# source://activemodel//lib/active_model/type/date_time.rb#
|
|
2090
|
+
# source://activemodel//lib/active_model/type/date_time.rb#39
|
|
1961
2091
|
class ActiveModel::Type::DateTime < ::ActiveModel::Type::Value
|
|
1962
2092
|
include ::ActiveModel::Type::Helpers::Timezone
|
|
1963
2093
|
include ::ActiveModel::Type::Helpers::AcceptsMultiparameterTime::InstanceMethods
|
|
1964
2094
|
include ::ActiveModel::Type::Helpers::TimeValue
|
|
1965
2095
|
|
|
1966
|
-
# source://activemodel//lib/active_model/type/date_time.rb#
|
|
2096
|
+
# source://activemodel//lib/active_model/type/date_time.rb#50
|
|
2097
|
+
def mutable?; end
|
|
2098
|
+
|
|
2099
|
+
# source://activemodel//lib/active_model/type/date_time.rb#46
|
|
1967
2100
|
def type; end
|
|
1968
2101
|
|
|
1969
2102
|
private
|
|
1970
2103
|
|
|
1971
|
-
# source://activemodel//lib/active_model/type/date_time.rb#
|
|
2104
|
+
# source://activemodel//lib/active_model/type/date_time.rb#59
|
|
1972
2105
|
def cast_value(value); end
|
|
1973
2106
|
|
|
1974
|
-
# source://activemodel//lib/active_model/type/date_time.rb#
|
|
2107
|
+
# source://activemodel//lib/active_model/type/date_time.rb#72
|
|
1975
2108
|
def fallback_string_to_time(string); end
|
|
1976
2109
|
|
|
1977
|
-
# source://activemodel//lib/active_model/type/date_time.rb#
|
|
2110
|
+
# source://activemodel//lib/active_model/type/date_time.rb#68
|
|
1978
2111
|
def microseconds(time); end
|
|
1979
2112
|
|
|
1980
|
-
# source://activemodel//lib/active_model/type/date_time.rb#
|
|
2113
|
+
# source://activemodel//lib/active_model/type/date_time.rb#84
|
|
1981
2114
|
def value_from_multiparameter_assignment(values_hash); end
|
|
1982
2115
|
end
|
|
1983
2116
|
|
|
1984
2117
|
# source://activemodel//lib/active_model/type/decimal.rb#45
|
|
1985
2118
|
class ActiveModel::Type::Decimal < ::ActiveModel::Type::Value
|
|
2119
|
+
include ::ActiveModel::Type::Helpers::Immutable
|
|
1986
2120
|
include ::ActiveModel::Type::Helpers::Numeric
|
|
1987
2121
|
|
|
1988
|
-
# source://activemodel//lib/active_model/type/decimal.rb#
|
|
2122
|
+
# source://activemodel//lib/active_model/type/decimal.rb#50
|
|
1989
2123
|
def type; end
|
|
1990
2124
|
|
|
1991
|
-
# source://activemodel//lib/active_model/type/decimal.rb#
|
|
2125
|
+
# source://activemodel//lib/active_model/type/decimal.rb#54
|
|
1992
2126
|
def type_cast_for_schema(value); end
|
|
1993
2127
|
|
|
1994
2128
|
private
|
|
1995
2129
|
|
|
1996
|
-
# source://activemodel//lib/active_model/type/decimal.rb#
|
|
2130
|
+
# source://activemodel//lib/active_model/type/decimal.rb#99
|
|
1997
2131
|
def apply_scale(value); end
|
|
1998
2132
|
|
|
1999
|
-
# source://activemodel//lib/active_model/type/decimal.rb#
|
|
2133
|
+
# source://activemodel//lib/active_model/type/decimal.rb#59
|
|
2000
2134
|
def cast_value(value); end
|
|
2001
2135
|
|
|
2002
|
-
# source://activemodel//lib/active_model/type/decimal.rb#
|
|
2136
|
+
# source://activemodel//lib/active_model/type/decimal.rb#83
|
|
2003
2137
|
def convert_float_to_big_decimal(value); end
|
|
2004
2138
|
|
|
2005
|
-
# source://activemodel//lib/active_model/type/decimal.rb#
|
|
2139
|
+
# source://activemodel//lib/active_model/type/decimal.rb#91
|
|
2006
2140
|
def float_precision; end
|
|
2007
2141
|
end
|
|
2008
2142
|
|
|
2009
|
-
# source://activemodel//lib/active_model/type/decimal.rb#
|
|
2143
|
+
# source://activemodel//lib/active_model/type/decimal.rb#48
|
|
2010
2144
|
ActiveModel::Type::Decimal::BIGDECIMAL_PRECISION = T.let(T.unsafe(nil), Integer)
|
|
2011
2145
|
|
|
2012
2146
|
# source://activemodel//lib/active_model/type/float.rb#36
|
|
2013
2147
|
class ActiveModel::Type::Float < ::ActiveModel::Type::Value
|
|
2148
|
+
include ::ActiveModel::Type::Helpers::Immutable
|
|
2014
2149
|
include ::ActiveModel::Type::Helpers::Numeric
|
|
2015
2150
|
|
|
2016
|
-
# source://activemodel//lib/active_model/type/float.rb#
|
|
2151
|
+
# source://activemodel//lib/active_model/type/float.rb#40
|
|
2017
2152
|
def type; end
|
|
2018
2153
|
|
|
2019
|
-
# source://activemodel//lib/active_model/type/float.rb#
|
|
2154
|
+
# source://activemodel//lib/active_model/type/float.rb#44
|
|
2020
2155
|
def type_cast_for_schema(value); end
|
|
2021
2156
|
|
|
2022
2157
|
private
|
|
2023
2158
|
|
|
2024
|
-
# source://activemodel//lib/active_model/type/float.rb#
|
|
2159
|
+
# source://activemodel//lib/active_model/type/float.rb#54
|
|
2025
2160
|
def cast_value(value); end
|
|
2026
2161
|
end
|
|
2027
2162
|
|
|
@@ -2052,6 +2187,12 @@ module ActiveModel::Type::Helpers::AcceptsMultiparameterTime::InstanceMethods
|
|
|
2052
2187
|
def value_constructed_by_mass_assignment?(value); end
|
|
2053
2188
|
end
|
|
2054
2189
|
|
|
2190
|
+
# source://activemodel//lib/active_model/type/helpers/immutable.rb#6
|
|
2191
|
+
module ActiveModel::Type::Helpers::Immutable
|
|
2192
|
+
# source://activemodel//lib/active_model/type/helpers/immutable.rb#7
|
|
2193
|
+
def mutable?; end
|
|
2194
|
+
end
|
|
2195
|
+
|
|
2055
2196
|
# source://activemodel//lib/active_model/type/helpers/mutable.rb#6
|
|
2056
2197
|
module ActiveModel::Type::Helpers::Mutable
|
|
2057
2198
|
# source://activemodel//lib/active_model/type/helpers/mutable.rb#7
|
|
@@ -2130,71 +2271,68 @@ end
|
|
|
2130
2271
|
|
|
2131
2272
|
# source://activemodel//lib/active_model/type/immutable_string.rb#37
|
|
2132
2273
|
class ActiveModel::Type::ImmutableString < ::ActiveModel::Type::Value
|
|
2133
|
-
|
|
2274
|
+
include ::ActiveModel::Type::Helpers::Immutable
|
|
2275
|
+
|
|
2276
|
+
# source://activemodel//lib/active_model/type/immutable_string.rb#40
|
|
2134
2277
|
def initialize(**args); end
|
|
2135
2278
|
|
|
2136
|
-
# source://activemodel//lib/active_model/type/immutable_string.rb#
|
|
2279
|
+
# source://activemodel//lib/active_model/type/immutable_string.rb#50
|
|
2137
2280
|
def serialize(value); end
|
|
2138
2281
|
|
|
2139
|
-
# source://activemodel//lib/active_model/type/immutable_string.rb#
|
|
2282
|
+
# source://activemodel//lib/active_model/type/immutable_string.rb#59
|
|
2140
2283
|
def serialize_cast_value(value); end
|
|
2141
2284
|
|
|
2142
|
-
# source://activemodel//lib/active_model/type/immutable_string.rb#
|
|
2285
|
+
# source://activemodel//lib/active_model/type/immutable_string.rb#46
|
|
2143
2286
|
def type; end
|
|
2144
2287
|
|
|
2145
2288
|
private
|
|
2146
2289
|
|
|
2147
|
-
# source://activemodel//lib/active_model/type/immutable_string.rb#
|
|
2290
|
+
# source://activemodel//lib/active_model/type/immutable_string.rb#64
|
|
2148
2291
|
def cast_value(value); end
|
|
2149
2292
|
end
|
|
2150
2293
|
|
|
2151
2294
|
# source://activemodel//lib/active_model/type/integer.rb#44
|
|
2152
2295
|
class ActiveModel::Type::Integer < ::ActiveModel::Type::Value
|
|
2296
|
+
include ::ActiveModel::Type::Helpers::Immutable
|
|
2153
2297
|
include ::ActiveModel::Type::Helpers::Numeric
|
|
2154
2298
|
|
|
2155
|
-
# source://activemodel//lib/active_model/type/integer.rb#
|
|
2299
|
+
# source://activemodel//lib/active_model/type/integer.rb#52
|
|
2156
2300
|
def initialize(**_arg0); end
|
|
2157
2301
|
|
|
2158
|
-
# source://activemodel//lib/active_model/type/integer.rb#
|
|
2302
|
+
# source://activemodel//lib/active_model/type/integer.rb#62
|
|
2159
2303
|
def deserialize(value); end
|
|
2160
2304
|
|
|
2161
|
-
# source://activemodel//lib/active_model/type/integer.rb#
|
|
2305
|
+
# source://activemodel//lib/active_model/type/integer.rb#96
|
|
2162
2306
|
def serializable?(value); end
|
|
2163
2307
|
|
|
2164
|
-
# source://activemodel//lib/active_model/type/integer.rb#
|
|
2308
|
+
# source://activemodel//lib/active_model/type/integer.rb#67
|
|
2165
2309
|
def serialize(value); end
|
|
2166
2310
|
|
|
2167
|
-
# source://activemodel//lib/active_model/type/integer.rb#
|
|
2311
|
+
# source://activemodel//lib/active_model/type/integer.rb#88
|
|
2168
2312
|
def serialize_cast_value(value); end
|
|
2169
2313
|
|
|
2170
|
-
# source://activemodel//lib/active_model/type/integer.rb#
|
|
2314
|
+
# source://activemodel//lib/active_model/type/integer.rb#58
|
|
2171
2315
|
def type; end
|
|
2172
2316
|
|
|
2173
2317
|
private
|
|
2174
2318
|
|
|
2175
|
-
# source://activemodel//lib/active_model/type/integer.rb#
|
|
2319
|
+
# source://activemodel//lib/active_model/type/integer.rb#132
|
|
2176
2320
|
def _limit; end
|
|
2177
2321
|
|
|
2178
|
-
# source://activemodel//lib/active_model/type/integer.rb#
|
|
2322
|
+
# source://activemodel//lib/active_model/type/integer.rb#112
|
|
2179
2323
|
def cast_value(value); end
|
|
2180
2324
|
|
|
2181
|
-
# source://activemodel//lib/active_model/type/integer.rb#
|
|
2182
|
-
def ensure_in_range(value); end
|
|
2183
|
-
|
|
2184
|
-
# source://activemodel//lib/active_model/type/integer.rb#85
|
|
2185
|
-
def in_range?(value); end
|
|
2186
|
-
|
|
2187
|
-
# source://activemodel//lib/active_model/type/integer.rb#100
|
|
2325
|
+
# source://activemodel//lib/active_model/type/integer.rb#124
|
|
2188
2326
|
def max_value; end
|
|
2189
2327
|
|
|
2190
|
-
# source://activemodel//lib/active_model/type/integer.rb#
|
|
2328
|
+
# source://activemodel//lib/active_model/type/integer.rb#128
|
|
2191
2329
|
def min_value; end
|
|
2192
2330
|
|
|
2193
|
-
# source://activemodel//lib/active_model/type/integer.rb#
|
|
2194
|
-
def
|
|
2331
|
+
# source://activemodel//lib/active_model/type/integer.rb#104
|
|
2332
|
+
def out_of_range?(value); end
|
|
2195
2333
|
end
|
|
2196
2334
|
|
|
2197
|
-
# source://activemodel//lib/active_model/type/integer.rb#
|
|
2335
|
+
# source://activemodel//lib/active_model/type/integer.rb#50
|
|
2198
2336
|
ActiveModel::Type::Integer::DEFAULT_LIMIT = T.let(T.unsafe(nil), Integer)
|
|
2199
2337
|
|
|
2200
2338
|
# source://activemodel//lib/active_model/type/registry.rb#5
|
|
@@ -2257,11 +2395,14 @@ class ActiveModel::Type::String < ::ActiveModel::Type::ImmutableString
|
|
|
2257
2395
|
def changed_in_place?(raw_old_value, new_value); end
|
|
2258
2396
|
|
|
2259
2397
|
# source://activemodel//lib/active_model/type/string.rb#22
|
|
2398
|
+
def mutable?; end
|
|
2399
|
+
|
|
2400
|
+
# source://activemodel//lib/active_model/type/string.rb#26
|
|
2260
2401
|
def to_immutable_string; end
|
|
2261
2402
|
|
|
2262
2403
|
private
|
|
2263
2404
|
|
|
2264
|
-
# source://activemodel//lib/active_model/type/string.rb#
|
|
2405
|
+
# source://activemodel//lib/active_model/type/string.rb#37
|
|
2265
2406
|
def cast_value(value); end
|
|
2266
2407
|
end
|
|
2267
2408
|
|
|
@@ -2341,7 +2482,7 @@ class ActiveModel::Type::Value
|
|
|
2341
2482
|
def scale; end
|
|
2342
2483
|
|
|
2343
2484
|
# source://activemodel//lib/active_model/type/value.rb#28
|
|
2344
|
-
def serializable?(value, &
|
|
2485
|
+
def serializable?(value, &_arg1); end
|
|
2345
2486
|
|
|
2346
2487
|
# source://activemodel//lib/active_model/type/value.rb#65
|
|
2347
2488
|
def serialize(value); end
|
|
@@ -2364,15 +2505,15 @@ class ActiveModel::Type::Value
|
|
|
2364
2505
|
def cast_value(value); end
|
|
2365
2506
|
end
|
|
2366
2507
|
|
|
2367
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
2508
|
+
# source://activemodel//lib/active_model/errors.rb#536
|
|
2368
2509
|
class ActiveModel::UnknownAttributeError < ::NoMethodError
|
|
2369
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
2510
|
+
# source://activemodel//lib/active_model/errors.rb#539
|
|
2370
2511
|
def initialize(record, attribute); end
|
|
2371
2512
|
|
|
2372
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
2513
|
+
# source://activemodel//lib/active_model/errors.rb#537
|
|
2373
2514
|
def attribute; end
|
|
2374
2515
|
|
|
2375
|
-
# source://activemodel//lib/active_model/errors.rb#
|
|
2516
|
+
# source://activemodel//lib/active_model/errors.rb#537
|
|
2376
2517
|
def record; end
|
|
2377
2518
|
end
|
|
2378
2519
|
|
|
@@ -2394,21 +2535,21 @@ ActiveModel::VERSION::STRING = T.let(T.unsafe(nil), String)
|
|
|
2394
2535
|
# source://activemodel//lib/active_model/gem_version.rb#12
|
|
2395
2536
|
ActiveModel::VERSION::TINY = T.let(T.unsafe(nil), Integer)
|
|
2396
2537
|
|
|
2397
|
-
# source://activemodel//lib/active_model/validations.rb#
|
|
2538
|
+
# source://activemodel//lib/active_model/validations.rb#493
|
|
2398
2539
|
class ActiveModel::ValidationContext
|
|
2399
|
-
# source://activemodel//lib/active_model/validations.rb#
|
|
2540
|
+
# source://activemodel//lib/active_model/validations.rb#494
|
|
2400
2541
|
def context; end
|
|
2401
2542
|
|
|
2402
|
-
# source://activemodel//lib/active_model/validations.rb#
|
|
2543
|
+
# source://activemodel//lib/active_model/validations.rb#494
|
|
2403
2544
|
def context=(_arg0); end
|
|
2404
2545
|
end
|
|
2405
2546
|
|
|
2406
|
-
# source://activemodel//lib/active_model/validations.rb#
|
|
2547
|
+
# source://activemodel//lib/active_model/validations.rb#483
|
|
2407
2548
|
class ActiveModel::ValidationError < ::StandardError
|
|
2408
|
-
# source://activemodel//lib/active_model/validations.rb#
|
|
2549
|
+
# source://activemodel//lib/active_model/validations.rb#486
|
|
2409
2550
|
def initialize(model); end
|
|
2410
2551
|
|
|
2411
|
-
# source://activemodel//lib/active_model/validations.rb#
|
|
2552
|
+
# source://activemodel//lib/active_model/validations.rb#484
|
|
2412
2553
|
def model; end
|
|
2413
2554
|
end
|
|
2414
2555
|
|
|
@@ -2436,7 +2577,8 @@ module ActiveModel::Validations
|
|
|
2436
2577
|
# source://activemodel//lib/active_model/validations.rb#410
|
|
2437
2578
|
def invalid?(context = T.unsafe(nil)); end
|
|
2438
2579
|
|
|
2439
|
-
|
|
2580
|
+
# source://activemodel//lib/active_model/validations.rb#439
|
|
2581
|
+
def read_attribute_for_validation(key); end
|
|
2440
2582
|
|
|
2441
2583
|
# source://activemodel//lib/active_model/validations.rb#363
|
|
2442
2584
|
def valid?(context = T.unsafe(nil)); end
|
|
@@ -2450,27 +2592,27 @@ module ActiveModel::Validations
|
|
|
2450
2592
|
# source://activemodel//lib/active_model/validations/with.rb#144
|
|
2451
2593
|
def validates_with(*args, &block); end
|
|
2452
2594
|
|
|
2453
|
-
# source://activemodel//lib/active_model/validations.rb#
|
|
2595
|
+
# source://activemodel//lib/active_model/validations.rb#444
|
|
2454
2596
|
def validation_context; end
|
|
2455
2597
|
|
|
2456
2598
|
private
|
|
2457
2599
|
|
|
2458
|
-
# source://activemodel//lib/active_model/validations.rb#
|
|
2600
|
+
# source://activemodel//lib/active_model/validations.rb#453
|
|
2459
2601
|
def context_for_validation; end
|
|
2460
2602
|
|
|
2461
|
-
# source://activemodel//lib/active_model/validations.rb#
|
|
2603
|
+
# source://activemodel//lib/active_model/validations.rb#457
|
|
2462
2604
|
def init_internals; end
|
|
2463
2605
|
|
|
2464
2606
|
# source://activemodel//lib/active_model/validations.rb#312
|
|
2465
2607
|
def initialize_dup(other); end
|
|
2466
2608
|
|
|
2467
|
-
# source://activemodel//lib/active_model/validations.rb#
|
|
2609
|
+
# source://activemodel//lib/active_model/validations.rb#468
|
|
2468
2610
|
def raise_validation_error; end
|
|
2469
2611
|
|
|
2470
|
-
# source://activemodel//lib/active_model/validations.rb#
|
|
2612
|
+
# source://activemodel//lib/active_model/validations.rb#463
|
|
2471
2613
|
def run_validations!; end
|
|
2472
2614
|
|
|
2473
|
-
# source://activemodel//lib/active_model/validations.rb#
|
|
2615
|
+
# source://activemodel//lib/active_model/validations.rb#449
|
|
2474
2616
|
def validation_context=(context); end
|
|
2475
2617
|
|
|
2476
2618
|
module GeneratedClassMethods
|
|
@@ -2547,7 +2689,7 @@ module ActiveModel::Validations::Callbacks
|
|
|
2547
2689
|
|
|
2548
2690
|
private
|
|
2549
2691
|
|
|
2550
|
-
# source://activemodel//lib/active_model/validations/callbacks.rb#
|
|
2692
|
+
# source://activemodel//lib/active_model/validations/callbacks.rb#124
|
|
2551
2693
|
def run_validations!; end
|
|
2552
2694
|
|
|
2553
2695
|
module GeneratedClassMethods
|