sorbet-rails 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/sorbet-rails/gem_plugins/active_flag_plugin.rb +0 -1
- data/lib/sorbet-rails/gem_plugins/paperclip_plugin.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +9 -2
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_enum.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_named_scope.rb +15 -6
- data/lib/sorbet-rails/model_plugins/active_record_querying.rb +5 -1
- data/lib/sorbet-rails/model_plugins/base.rb +2 -1
- data/lib/sorbet-rails/model_rbi_formatter.rb +4 -8
- data/lib/sorbet-rails/model_utils.rb +68 -30
- data/lib/sorbet-rails/tasks/rails_rbi.rake +13 -21
- data/sorbet-rails.gemspec +1 -1
- data/spec/generators/rails-template.rb +3 -6
- data/spec/generators/sorbet_test_cases.rb +41 -26
- data/spec/support/v5.0/Gemfile.lock +2 -2
- data/spec/support/v5.0/app/models/spell_book.rb +2 -0
- data/spec/support/v5.0/app/models/wizard.rb +1 -1
- data/spec/support/v5.0/sorbet_test_cases.rb +41 -26
- data/spec/support/v5.1/Gemfile.lock +2 -2
- data/spec/support/v5.1/app/models/spell_book.rb +2 -0
- data/spec/support/v5.1/app/models/wizard.rb +1 -1
- data/spec/support/v5.1/sorbet_test_cases.rb +41 -26
- data/spec/support/v5.2/Gemfile.lock +2 -2
- data/spec/support/v5.2/app/models/spell_book.rb +2 -0
- data/spec/support/v5.2/app/models/wizard.rb +1 -1
- data/spec/support/v5.2/sorbet_test_cases.rb +41 -26
- data/spec/support/v6.0/Gemfile.lock +2 -2
- data/spec/support/v6.0/app/models/spell_book.rb +2 -0
- data/spec/support/v6.0/app/models/wizard.rb +1 -1
- data/spec/support/v6.0/sorbet_test_cases.rb +41 -26
- data/spec/test_data/v5.0/expected_headmaster.rbi +18 -190
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +18 -188
- data/spec/test_data/v5.0/expected_potion.rbi +18 -188
- data/spec/test_data/v5.0/expected_robe.rbi +18 -190
- data/spec/test_data/v5.0/expected_schema_migration.rbi +18 -188
- data/spec/test_data/v5.0/expected_school.rbi +18 -190
- data/spec/test_data/v5.0/expected_spell.rbi +18 -190
- data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +18 -190
- data/spec/test_data/v5.0/expected_spell_book.rbi +55 -217
- data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +18 -190
- data/spec/test_data/v5.0/expected_squib.rbi +90 -264
- data/spec/test_data/v5.0/expected_subject.rbi +18 -190
- data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +18 -190
- data/spec/test_data/v5.0/expected_wand.rbi +53 -227
- data/spec/test_data/v5.0/expected_wizard.rbi +90 -264
- data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +18 -190
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +90 -264
- data/spec/test_data/v5.1/expected_headmaster.rbi +18 -196
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +18 -194
- data/spec/test_data/v5.1/expected_potion.rbi +18 -194
- data/spec/test_data/v5.1/expected_robe.rbi +18 -196
- data/spec/test_data/v5.1/expected_schema_migration.rbi +18 -194
- data/spec/test_data/v5.1/expected_school.rbi +18 -196
- data/spec/test_data/v5.1/expected_spell.rbi +18 -196
- data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +18 -196
- data/spec/test_data/v5.1/expected_spell_book.rbi +55 -223
- data/spec/test_data/v5.1/expected_spell_book/habtm_spells.rbi +18 -196
- data/spec/test_data/v5.1/expected_squib.rbi +91 -271
- data/spec/test_data/v5.1/expected_subject.rbi +18 -196
- data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +18 -196
- data/spec/test_data/v5.1/expected_wand.rbi +53 -233
- data/spec/test_data/v5.1/expected_wizard.rbi +91 -271
- data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +18 -196
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +91 -271
- data/spec/test_data/v5.2/expected_attachment.rbi +18 -194
- data/spec/test_data/v5.2/expected_blob.rbi +39 -215
- data/spec/test_data/v5.2/expected_headmaster.rbi +18 -196
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +18 -194
- data/spec/test_data/v5.2/expected_potion.rbi +18 -194
- data/spec/test_data/v5.2/expected_robe.rbi +18 -196
- data/spec/test_data/v5.2/expected_schema_migration.rbi +18 -194
- data/spec/test_data/v5.2/expected_school.rbi +18 -196
- data/spec/test_data/v5.2/expected_spell.rbi +18 -196
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +18 -196
- data/spec/test_data/v5.2/expected_spell_book.rbi +55 -223
- data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +18 -196
- data/spec/test_data/v5.2/expected_squib.rbi +95 -275
- data/spec/test_data/v5.2/expected_subject.rbi +18 -196
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +18 -196
- data/spec/test_data/v5.2/expected_wand.rbi +53 -233
- data/spec/test_data/v5.2/expected_wizard.rbi +95 -275
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +18 -196
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +95 -275
- data/spec/test_data/v6.0/expected_attachment.rbi +18 -218
- data/spec/test_data/v6.0/expected_blob.rbi +31 -243
- data/spec/test_data/v6.0/expected_headmaster.rbi +18 -220
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +18 -218
- data/spec/test_data/v6.0/expected_potion.rbi +18 -218
- data/spec/test_data/v6.0/expected_robe.rbi +18 -220
- data/spec/test_data/v6.0/expected_schema_migration.rbi +18 -218
- data/spec/test_data/v6.0/expected_school.rbi +18 -220
- data/spec/test_data/v6.0/expected_spell.rbi +18 -220
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +18 -220
- data/spec/test_data/v6.0/expected_spell_book.rbi +24 -258
- data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +18 -220
- data/spec/test_data/v6.0/expected_squib.rbi +31 -457
- data/spec/test_data/v6.0/expected_subject.rbi +18 -220
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +18 -220
- data/spec/test_data/v6.0/expected_wand.rbi +18 -270
- data/spec/test_data/v6.0/expected_wizard.rbi +31 -457
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +18 -220
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +31 -457
- metadata +1 -1
@@ -8,8 +8,6 @@ module ActiveStorage::Attachment::ActiveRelation_WhereNot
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module ActiveStorage::Attachment::GeneratedAssociationMethods
|
11
|
-
extend T::Sig
|
12
|
-
|
13
11
|
sig { returns(::ActiveStorage::Blob) }
|
14
12
|
def blob; end
|
15
13
|
|
@@ -43,117 +41,11 @@ end
|
|
43
41
|
class ActiveStorage::Attachment < ActiveRecord::Base
|
44
42
|
include ActiveStorage::Attachment::GeneratedAssociationMethods
|
45
43
|
extend ActiveStorage::Attachment::CustomFinderMethods
|
46
|
-
extend
|
47
|
-
extend T::Generic
|
44
|
+
extend ActiveStorage::Attachment::QueryMethodsReturningRelation
|
48
45
|
RelationType = T.type_alias { T.any(ActiveStorage::Attachment::ActiveRecord_Relation, ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy, ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
49
|
-
|
50
|
-
sig { returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
51
|
-
def self.all; end
|
52
|
-
|
53
|
-
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
54
|
-
def self.unscoped(&block); end
|
55
|
-
|
56
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
57
|
-
def self.select(*args); end
|
58
|
-
|
59
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
60
|
-
def self.reselect(*args); end
|
61
|
-
|
62
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
63
|
-
def self.order(*args); end
|
64
|
-
|
65
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
66
|
-
def self.reorder(*args); end
|
67
|
-
|
68
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
69
|
-
def self.group(*args); end
|
70
|
-
|
71
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
72
|
-
def self.limit(*args); end
|
73
|
-
|
74
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
75
|
-
def self.offset(*args); end
|
76
|
-
|
77
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
78
|
-
def self.joins(*args); end
|
79
|
-
|
80
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
81
|
-
def self.left_joins(*args); end
|
82
|
-
|
83
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
84
|
-
def self.left_outer_joins(*args); end
|
85
|
-
|
86
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
87
|
-
def self.where(*args); end
|
88
|
-
|
89
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
90
|
-
def self.rewhere(*args); end
|
91
|
-
|
92
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
93
|
-
def self.preload(*args); end
|
94
|
-
|
95
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
96
|
-
def self.extract_associated(*args); end
|
97
|
-
|
98
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
99
|
-
def self.eager_load(*args); end
|
100
|
-
|
101
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
102
|
-
def self.includes(*args); end
|
103
|
-
|
104
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
105
|
-
def self.from(*args); end
|
106
|
-
|
107
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
108
|
-
def self.lock(*args); end
|
109
|
-
|
110
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
111
|
-
def self.readonly(*args); end
|
112
|
-
|
113
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
114
|
-
def self.or(*args); end
|
115
|
-
|
116
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
117
|
-
def self.having(*args); end
|
118
|
-
|
119
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
120
|
-
def self.create_with(*args); end
|
121
|
-
|
122
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
123
|
-
def self.distinct(*args); end
|
124
|
-
|
125
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
126
|
-
def self.references(*args); end
|
127
|
-
|
128
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
129
|
-
def self.none(*args); end
|
130
|
-
|
131
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
132
|
-
def self.unscope(*args); end
|
133
|
-
|
134
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
135
|
-
def self.optimizer_hints(*args); end
|
136
|
-
|
137
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
138
|
-
def self.merge(*args); end
|
139
|
-
|
140
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
141
|
-
def self.except(*args); end
|
142
|
-
|
143
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
144
|
-
def self.only(*args); end
|
145
|
-
|
146
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
147
|
-
def self.extending(*args, &block); end
|
148
46
|
end
|
149
47
|
|
150
|
-
|
151
|
-
include ActiveStorage::Attachment::ActiveRelation_WhereNot
|
152
|
-
include ActiveStorage::Attachment::CustomFinderMethods
|
153
|
-
extend T::Sig
|
154
|
-
extend T::Generic
|
155
|
-
Elem = type_member(fixed: ActiveStorage::Attachment)
|
156
|
-
|
48
|
+
module ActiveStorage::Attachment::QueryMethodsReturningRelation
|
157
49
|
sig { returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
158
50
|
def all; end
|
159
51
|
|
@@ -254,17 +146,11 @@ class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
|
|
254
146
|
def extending(*args, &block); end
|
255
147
|
end
|
256
148
|
|
257
|
-
|
258
|
-
include ActiveStorage::Attachment::ActiveRelation_WhereNot
|
259
|
-
include ActiveStorage::Attachment::CustomFinderMethods
|
260
|
-
extend T::Sig
|
261
|
-
extend T::Generic
|
262
|
-
Elem = type_member(fixed: ActiveStorage::Attachment)
|
263
|
-
|
149
|
+
module ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
|
264
150
|
sig { returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
265
151
|
def all; end
|
266
152
|
|
267
|
-
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::
|
153
|
+
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
268
154
|
def unscoped(&block); end
|
269
155
|
|
270
156
|
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
@@ -361,110 +247,24 @@ class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord
|
|
361
247
|
def extending(*args, &block); end
|
362
248
|
end
|
363
249
|
|
364
|
-
class ActiveStorage::Attachment::
|
250
|
+
class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
|
251
|
+
include ActiveStorage::Attachment::ActiveRelation_WhereNot
|
365
252
|
include ActiveStorage::Attachment::CustomFinderMethods
|
366
|
-
|
367
|
-
extend T::Generic
|
253
|
+
include ActiveStorage::Attachment::QueryMethodsReturningRelation
|
368
254
|
Elem = type_member(fixed: ActiveStorage::Attachment)
|
255
|
+
end
|
369
256
|
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
377
|
-
def select(*args); end
|
378
|
-
|
379
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
380
|
-
def reselect(*args); end
|
381
|
-
|
382
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
383
|
-
def order(*args); end
|
384
|
-
|
385
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
386
|
-
def reorder(*args); end
|
387
|
-
|
388
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
389
|
-
def group(*args); end
|
390
|
-
|
391
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
392
|
-
def limit(*args); end
|
393
|
-
|
394
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
395
|
-
def offset(*args); end
|
396
|
-
|
397
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
398
|
-
def joins(*args); end
|
399
|
-
|
400
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
401
|
-
def left_joins(*args); end
|
402
|
-
|
403
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
404
|
-
def left_outer_joins(*args); end
|
405
|
-
|
406
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
407
|
-
def where(*args); end
|
408
|
-
|
409
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
410
|
-
def rewhere(*args); end
|
411
|
-
|
412
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
413
|
-
def preload(*args); end
|
414
|
-
|
415
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
416
|
-
def extract_associated(*args); end
|
417
|
-
|
418
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
419
|
-
def eager_load(*args); end
|
420
|
-
|
421
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
422
|
-
def includes(*args); end
|
423
|
-
|
424
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
425
|
-
def from(*args); end
|
426
|
-
|
427
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
428
|
-
def lock(*args); end
|
429
|
-
|
430
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
431
|
-
def readonly(*args); end
|
432
|
-
|
433
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
434
|
-
def or(*args); end
|
435
|
-
|
436
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
437
|
-
def having(*args); end
|
438
|
-
|
439
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
440
|
-
def create_with(*args); end
|
441
|
-
|
442
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
443
|
-
def distinct(*args); end
|
444
|
-
|
445
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
446
|
-
def references(*args); end
|
447
|
-
|
448
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
449
|
-
def none(*args); end
|
450
|
-
|
451
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
452
|
-
def unscope(*args); end
|
453
|
-
|
454
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
455
|
-
def optimizer_hints(*args); end
|
456
|
-
|
457
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
458
|
-
def merge(*args); end
|
459
|
-
|
460
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
461
|
-
def except(*args); end
|
462
|
-
|
463
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
464
|
-
def only(*args); end
|
257
|
+
class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
258
|
+
include ActiveStorage::Attachment::ActiveRelation_WhereNot
|
259
|
+
include ActiveStorage::Attachment::CustomFinderMethods
|
260
|
+
include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
|
261
|
+
Elem = type_member(fixed: ActiveStorage::Attachment)
|
262
|
+
end
|
465
263
|
|
466
|
-
|
467
|
-
|
264
|
+
class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
265
|
+
include ActiveStorage::Attachment::CustomFinderMethods
|
266
|
+
include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
|
267
|
+
Elem = type_member(fixed: ActiveStorage::Attachment)
|
468
268
|
|
469
269
|
sig { params(records: T.any(ActiveStorage::Attachment, T::Array[ActiveStorage::Attachment])).returns(T.self_type) }
|
470
270
|
def <<(*records); end
|
@@ -27,123 +27,11 @@ end
|
|
27
27
|
class ActiveStorage::Blob < ActiveRecord::Base
|
28
28
|
include ActiveStorage::Blob::GeneratedAssociationMethods
|
29
29
|
extend ActiveStorage::Blob::CustomFinderMethods
|
30
|
-
extend
|
31
|
-
extend T::Generic
|
30
|
+
extend ActiveStorage::Blob::QueryMethodsReturningRelation
|
32
31
|
RelationType = T.type_alias { T.any(ActiveStorage::Blob::ActiveRecord_Relation, ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy, ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
33
|
-
|
34
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
35
|
-
def self.unattached(*args); end
|
36
|
-
|
37
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
38
|
-
def self.with_attached_preview_image(*args); end
|
39
|
-
|
40
|
-
sig { returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
41
|
-
def self.all; end
|
42
|
-
|
43
|
-
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
44
|
-
def self.unscoped(&block); end
|
45
|
-
|
46
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
47
|
-
def self.select(*args); end
|
48
|
-
|
49
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
50
|
-
def self.reselect(*args); end
|
51
|
-
|
52
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
53
|
-
def self.order(*args); end
|
54
|
-
|
55
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
56
|
-
def self.reorder(*args); end
|
57
|
-
|
58
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
59
|
-
def self.group(*args); end
|
60
|
-
|
61
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
62
|
-
def self.limit(*args); end
|
63
|
-
|
64
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
65
|
-
def self.offset(*args); end
|
66
|
-
|
67
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
68
|
-
def self.joins(*args); end
|
69
|
-
|
70
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
71
|
-
def self.left_joins(*args); end
|
72
|
-
|
73
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
74
|
-
def self.left_outer_joins(*args); end
|
75
|
-
|
76
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
77
|
-
def self.where(*args); end
|
78
|
-
|
79
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
80
|
-
def self.rewhere(*args); end
|
81
|
-
|
82
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
83
|
-
def self.preload(*args); end
|
84
|
-
|
85
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
86
|
-
def self.extract_associated(*args); end
|
87
|
-
|
88
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
89
|
-
def self.eager_load(*args); end
|
90
|
-
|
91
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
92
|
-
def self.includes(*args); end
|
93
|
-
|
94
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
95
|
-
def self.from(*args); end
|
96
|
-
|
97
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
98
|
-
def self.lock(*args); end
|
99
|
-
|
100
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
101
|
-
def self.readonly(*args); end
|
102
|
-
|
103
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
104
|
-
def self.or(*args); end
|
105
|
-
|
106
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
107
|
-
def self.having(*args); end
|
108
|
-
|
109
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
110
|
-
def self.create_with(*args); end
|
111
|
-
|
112
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
113
|
-
def self.distinct(*args); end
|
114
|
-
|
115
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
116
|
-
def self.references(*args); end
|
117
|
-
|
118
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
119
|
-
def self.none(*args); end
|
120
|
-
|
121
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
122
|
-
def self.unscope(*args); end
|
123
|
-
|
124
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
125
|
-
def self.optimizer_hints(*args); end
|
126
|
-
|
127
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
128
|
-
def self.merge(*args); end
|
129
|
-
|
130
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
131
|
-
def self.except(*args); end
|
132
|
-
|
133
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
134
|
-
def self.only(*args); end
|
135
|
-
|
136
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
137
|
-
def self.extending(*args, &block); end
|
138
32
|
end
|
139
33
|
|
140
|
-
|
141
|
-
include ActiveStorage::Blob::ActiveRelation_WhereNot
|
142
|
-
include ActiveStorage::Blob::CustomFinderMethods
|
143
|
-
extend T::Sig
|
144
|
-
extend T::Generic
|
145
|
-
Elem = type_member(fixed: ActiveStorage::Blob)
|
146
|
-
|
34
|
+
module ActiveStorage::Blob::QueryMethodsReturningRelation
|
147
35
|
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
148
36
|
def unattached(*args); end
|
149
37
|
|
@@ -250,13 +138,7 @@ class ActiveStorage::Blob::ActiveRecord_Relation < ActiveRecord::Relation
|
|
250
138
|
def extending(*args, &block); end
|
251
139
|
end
|
252
140
|
|
253
|
-
|
254
|
-
include ActiveStorage::Blob::ActiveRelation_WhereNot
|
255
|
-
include ActiveStorage::Blob::CustomFinderMethods
|
256
|
-
extend T::Sig
|
257
|
-
extend T::Generic
|
258
|
-
Elem = type_member(fixed: ActiveStorage::Blob)
|
259
|
-
|
141
|
+
module ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
|
260
142
|
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
261
143
|
def unattached(*args); end
|
262
144
|
|
@@ -266,7 +148,7 @@ class ActiveStorage::Blob::ActiveRecord_AssociationRelation < ActiveRecord::Asso
|
|
266
148
|
sig { returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
267
149
|
def all; end
|
268
150
|
|
269
|
-
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::
|
151
|
+
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
270
152
|
def unscoped(&block); end
|
271
153
|
|
272
154
|
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
@@ -363,133 +245,21 @@ class ActiveStorage::Blob::ActiveRecord_AssociationRelation < ActiveRecord::Asso
|
|
363
245
|
def extending(*args, &block); end
|
364
246
|
end
|
365
247
|
|
366
|
-
class ActiveStorage::Blob::
|
248
|
+
class ActiveStorage::Blob::ActiveRecord_Relation < ActiveRecord::Relation
|
249
|
+
include ActiveStorage::Blob::ActiveRelation_WhereNot
|
367
250
|
include ActiveStorage::Blob::CustomFinderMethods
|
368
|
-
|
369
|
-
extend T::Generic
|
251
|
+
include ActiveStorage::Blob::QueryMethodsReturningRelation
|
370
252
|
Elem = type_member(fixed: ActiveStorage::Blob)
|
253
|
+
end
|
371
254
|
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
sig { returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
379
|
-
def all; end
|
380
|
-
|
381
|
-
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
382
|
-
def unscoped(&block); end
|
383
|
-
|
384
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
385
|
-
def select(*args); end
|
386
|
-
|
387
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
388
|
-
def reselect(*args); end
|
389
|
-
|
390
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
391
|
-
def order(*args); end
|
392
|
-
|
393
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
394
|
-
def reorder(*args); end
|
395
|
-
|
396
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
397
|
-
def group(*args); end
|
398
|
-
|
399
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
400
|
-
def limit(*args); end
|
401
|
-
|
402
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
403
|
-
def offset(*args); end
|
404
|
-
|
405
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
406
|
-
def joins(*args); end
|
407
|
-
|
408
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
409
|
-
def left_joins(*args); end
|
410
|
-
|
411
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
412
|
-
def left_outer_joins(*args); end
|
413
|
-
|
414
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
415
|
-
def where(*args); end
|
416
|
-
|
417
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
418
|
-
def rewhere(*args); end
|
419
|
-
|
420
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
421
|
-
def preload(*args); end
|
422
|
-
|
423
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
424
|
-
def extract_associated(*args); end
|
425
|
-
|
426
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
427
|
-
def eager_load(*args); end
|
428
|
-
|
429
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
430
|
-
def includes(*args); end
|
431
|
-
|
432
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
433
|
-
def from(*args); end
|
434
|
-
|
435
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
436
|
-
def lock(*args); end
|
437
|
-
|
438
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
439
|
-
def readonly(*args); end
|
440
|
-
|
441
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
442
|
-
def or(*args); end
|
443
|
-
|
444
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
445
|
-
def having(*args); end
|
446
|
-
|
447
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
448
|
-
def create_with(*args); end
|
449
|
-
|
450
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
451
|
-
def distinct(*args); end
|
452
|
-
|
453
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
454
|
-
def references(*args); end
|
455
|
-
|
456
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
457
|
-
def none(*args); end
|
458
|
-
|
459
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
460
|
-
def unscope(*args); end
|
461
|
-
|
462
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
463
|
-
def optimizer_hints(*args); end
|
464
|
-
|
465
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
466
|
-
def merge(*args); end
|
467
|
-
|
468
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
469
|
-
def except(*args); end
|
470
|
-
|
471
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
472
|
-
def only(*args); end
|
473
|
-
|
474
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
475
|
-
def extending(*args, &block); end
|
476
|
-
|
477
|
-
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
478
|
-
def <<(*records); end
|
479
|
-
|
480
|
-
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
481
|
-
def append(*records); end
|
482
|
-
|
483
|
-
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
484
|
-
def push(*records); end
|
485
|
-
|
486
|
-
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
487
|
-
def concat(*records); end
|
255
|
+
class ActiveStorage::Blob::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
256
|
+
include ActiveStorage::Blob::ActiveRelation_WhereNot
|
257
|
+
include ActiveStorage::Blob::CustomFinderMethods
|
258
|
+
include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
|
259
|
+
Elem = type_member(fixed: ActiveStorage::Blob)
|
488
260
|
end
|
489
261
|
|
490
262
|
module ActiveStorage::Blob::GeneratedAssociationMethods
|
491
|
-
extend T::Sig
|
492
|
-
|
493
263
|
sig { returns(::ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy) }
|
494
264
|
def attachments; end
|
495
265
|
|
@@ -517,3 +287,21 @@ module ActiveStorage::Blob::GeneratedAssociationMethods
|
|
517
287
|
sig { params(attachable: T.untyped).returns(T.untyped) }
|
518
288
|
def preview_image=(attachable); end
|
519
289
|
end
|
290
|
+
|
291
|
+
class ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
292
|
+
include ActiveStorage::Blob::CustomFinderMethods
|
293
|
+
include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
|
294
|
+
Elem = type_member(fixed: ActiveStorage::Blob)
|
295
|
+
|
296
|
+
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
297
|
+
def <<(*records); end
|
298
|
+
|
299
|
+
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
300
|
+
def append(*records); end
|
301
|
+
|
302
|
+
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
303
|
+
def push(*records); end
|
304
|
+
|
305
|
+
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
306
|
+
def concat(*records); end
|
307
|
+
end
|