sorbet-rails 0.7.33 → 0.7.34

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.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci-master.yml +1 -1
  3. data/.github/workflows/ci.yml +1 -1
  4. data/CONTRIBUTING.md +1 -0
  5. data/Gemfile +4 -0
  6. data/README.md +1 -1
  7. data/Rakefile +27 -1
  8. data/lib/sorbet-rails/active_record_rbi_formatter.rb +1 -1
  9. data/lib/sorbet-rails/model_plugins/active_record_querying.rb +14 -0
  10. data/lib/sorbet-rails/rails_mixins/active_record_overrides.rb +1 -1
  11. data/lib/sorbet-rails/tasks/rails_rbi.rake +15 -0
  12. data/sorbet-rails.gemspec +1 -1
  13. data/spec/bin/run_all_specs.sh +1 -0
  14. data/spec/generators/rails-template.rb +2 -7
  15. data/spec/rails_helper.rb +2 -0
  16. data/spec/rake_rails_rbi_models_spec.rb +1 -1
  17. data/spec/support/v5.2/sorbet_test_cases.rb +8 -0
  18. data/spec/support/v6.0/sorbet_test_cases.rb +8 -0
  19. data/spec/support/v6.1/sorbet_test_cases.rb +8 -0
  20. data/spec/support/v7.0/.gitattributes +7 -0
  21. data/spec/support/v7.0/.gitignore +35 -0
  22. data/spec/support/v7.0/Gemfile +48 -0
  23. data/spec/support/v7.0/Gemfile.lock +218 -0
  24. data/spec/support/v7.0/README.md +24 -0
  25. data/spec/support/v7.0/Rakefile +6 -0
  26. data/spec/support/v7.0/app/assets/images/.keep +0 -0
  27. data/spec/support/v7.0/app/assets/stylesheets/application.css +1 -0
  28. data/spec/support/v7.0/app/controllers/application_controller.rb +3 -0
  29. data/spec/support/v7.0/app/controllers/concerns/.keep +0 -0
  30. data/spec/support/v7.0/app/helpers/application_helper.rb +3 -0
  31. data/spec/support/v7.0/app/helpers/bar_helper.rb +3 -0
  32. data/spec/support/v7.0/app/helpers/baz_helper.rb +3 -0
  33. data/spec/support/v7.0/app/helpers/foo_helper.rb +3 -0
  34. data/spec/support/v7.0/app/jobs/application_job.rb +8 -0
  35. data/spec/support/v7.0/app/jobs/award_house_point_hourglasses.rb +12 -0
  36. data/spec/support/v7.0/app/mailers/application_mailer.rb +5 -0
  37. data/spec/support/v7.0/app/mailers/daily_prophet_mailer.rb +9 -0
  38. data/spec/support/v7.0/app/mailers/hogwarts_acceptance_mailer.rb +29 -0
  39. data/spec/support/v7.0/app/models/application_record.rb +4 -0
  40. data/spec/support/v7.0/app/models/concerns/.keep +0 -0
  41. data/spec/support/v7.0/app/models/concerns/mythical.rb +11 -0
  42. data/spec/support/v7.0/app/models/headmaster.rb +8 -0
  43. data/spec/support/v7.0/app/models/potion.rb +6 -0
  44. data/spec/support/v7.0/app/models/robe.rb +4 -0
  45. data/spec/support/v7.0/app/models/school.rb +5 -0
  46. data/spec/support/v7.0/app/models/spell.rb +5 -0
  47. data/spec/support/v7.0/app/models/spell_book.rb +18 -0
  48. data/spec/support/v7.0/app/models/squib.rb +6 -0
  49. data/spec/support/v7.0/app/models/subject.rb +5 -0
  50. data/spec/support/v7.0/app/models/wand.rb +19 -0
  51. data/spec/support/v7.0/app/models/wizard.rb +65 -0
  52. data/spec/support/v7.0/app/views/layouts/application.html.erb +15 -0
  53. data/spec/support/v7.0/app/views/layouts/mailer.html.erb +13 -0
  54. data/spec/support/v7.0/app/views/layouts/mailer.text.erb +1 -0
  55. data/spec/support/v7.0/bin/bundle +114 -0
  56. data/spec/support/v7.0/bin/rails +4 -0
  57. data/spec/support/v7.0/bin/rake +4 -0
  58. data/spec/support/v7.0/bin/setup +33 -0
  59. data/spec/support/v7.0/config/application.rb +38 -0
  60. data/spec/support/v7.0/config/boot.rb +4 -0
  61. data/spec/support/v7.0/config/database.yml +25 -0
  62. data/spec/support/v7.0/config/environment.rb +6 -0
  63. data/spec/support/v7.0/config/environments/development.rb +69 -0
  64. data/spec/support/v7.0/config/environments/production.rb +83 -0
  65. data/spec/support/v7.0/config/environments/test.rb +61 -0
  66. data/spec/support/v7.0/config/initializers/content_security_policy.rb +26 -0
  67. data/spec/support/v7.0/config/initializers/filter_parameter_logging.rb +9 -0
  68. data/spec/support/v7.0/config/initializers/inflections.rb +17 -0
  69. data/spec/support/v7.0/config/initializers/permissions_policy.rb +12 -0
  70. data/spec/support/v7.0/config/initializers/sorbet_rails.rb +3 -0
  71. data/spec/support/v7.0/config/locales/en.yml +33 -0
  72. data/spec/support/v7.0/config/puma.rb +44 -0
  73. data/spec/support/v7.0/config/routes.rb +8 -0
  74. data/spec/support/v7.0/config/storage.yml +34 -0
  75. data/spec/support/v7.0/config.ru +6 -0
  76. data/spec/support/v7.0/db/migrate/20190620000001_create_wizards.rb +14 -0
  77. data/spec/support/v7.0/db/migrate/20190620000002_create_wands.rb +12 -0
  78. data/spec/support/v7.0/db/migrate/20190620000003_create_spell_books.rb +10 -0
  79. data/spec/support/v7.0/db/migrate/20190620000004_add_more_column_types_to_wands.rb +14 -0
  80. data/spec/support/v7.0/db/migrate/20190620000005_add_broom_to_wizard.rb +6 -0
  81. data/spec/support/v7.0/db/migrate/20190620000006_add_more_enums_to_wizard.rb +9 -0
  82. data/spec/support/v7.0/db/migrate/20190620000007_add_type_to_wizard.rb +6 -0
  83. data/spec/support/v7.0/db/migrate/20190620000008_add_robe_to_wizard.rb +8 -0
  84. data/spec/support/v7.0/db/migrate/20190620000009_add_school.rb +10 -0
  85. data/spec/support/v7.0/db/migrate/20190620000010_add_subject.rb +8 -0
  86. data/spec/support/v7.0/db/migrate/20190620000011_add_subjects_wizards.rb +8 -0
  87. data/spec/support/v7.0/db/migrate/20190620000012_add_spell.rb +8 -0
  88. data/spec/support/v7.0/db/migrate/20190620000013_add_spells_spell_books.rb +8 -0
  89. data/spec/support/v7.0/db/migrate/20190620000014_create_headmasters.rb +9 -0
  90. data/spec/support/v7.0/db/migrate/20190620000015_add_serialized_to_wizards.rb +9 -0
  91. data/spec/support/v7.0/db/schema.rb +98 -0
  92. data/spec/support/v7.0/db/seeds.rb +8 -0
  93. data/spec/support/v7.0/lib/assets/.keep +0 -0
  94. data/spec/support/v7.0/lib/mythical_rbi_plugin.rb +16 -0
  95. data/spec/support/v7.0/lib/tasks/.keep +0 -0
  96. data/spec/support/v7.0/log/.keep +0 -0
  97. data/spec/support/v7.0/sorbet_test_cases.rb +439 -0
  98. data/spec/support/v7.0/storage/.keep +0 -0
  99. data/spec/support/v7.0/tmp/.keep +0 -0
  100. data/spec/support/v7.0/tmp/pids/.keep +0 -0
  101. data/spec/support/v7.0/tmp/storage/.keep +0 -0
  102. data/spec/support/v7.0/vendor/.keep +0 -0
  103. data/spec/test_data/v5.2/expected_active_record_base.rbi +6 -0
  104. data/spec/test_data/v5.2/expected_active_record_relation.rbi +6 -0
  105. data/spec/test_data/v6.0/expected_active_record_base.rbi +6 -0
  106. data/spec/test_data/v6.0/expected_active_record_relation.rbi +6 -0
  107. data/spec/test_data/v6.1/expected_active_record_base.rbi +6 -0
  108. data/spec/test_data/v6.1/expected_active_record_relation.rbi +6 -0
  109. data/spec/test_data/v7.0/expected_active_record_base.rbi +119 -0
  110. data/spec/test_data/v7.0/expected_active_record_relation.rbi +180 -0
  111. data/spec/test_data/v7.0/expected_application_job.rbi +20 -0
  112. data/spec/test_data/v7.0/expected_application_mailer.rbi +5 -0
  113. data/spec/test_data/v7.0/expected_attachment.rbi +358 -0
  114. data/spec/test_data/v7.0/expected_award_house_point_hourglasses.rbi +20 -0
  115. data/spec/test_data/v7.0/expected_blob.rbi +394 -0
  116. data/spec/test_data/v7.0/expected_custom_application_job.rbi +21 -0
  117. data/spec/test_data/v7.0/expected_custom_application_mailer.rbi +6 -0
  118. data/spec/test_data/v7.0/expected_custom_award_house_point_hourglasses.rbi +21 -0
  119. data/spec/test_data/v7.0/expected_custom_daily_prophet_mailer.rbi +8 -0
  120. data/spec/test_data/v7.0/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
  121. data/spec/test_data/v7.0/expected_daily_prophet_mailer.rbi +7 -0
  122. data/spec/test_data/v7.0/expected_headmaster.rbi +376 -0
  123. data/spec/test_data/v7.0/expected_helpers.rbi +27 -0
  124. data/spec/test_data/v7.0/expected_helpers_with_application_and_devise_helpers.rbi +34 -0
  125. data/spec/test_data/v7.0/expected_hogwarts_acceptance_mailer.rbi +20 -0
  126. data/spec/test_data/v7.0/expected_internal_metadata.rbi +346 -0
  127. data/spec/test_data/v7.0/expected_no_routes.rbi +4 -0
  128. data/spec/test_data/v7.0/expected_potion.rbi +328 -0
  129. data/spec/test_data/v7.0/expected_record.rbi +307 -0
  130. data/spec/test_data/v7.0/expected_robe.rbi +349 -0
  131. data/spec/test_data/v7.0/expected_routes.rbi +182 -0
  132. data/spec/test_data/v7.0/expected_schema_migration.rbi +319 -0
  133. data/spec/test_data/v7.0/expected_school.rbi +349 -0
  134. data/spec/test_data/v7.0/expected_spell/habtm_spell_books.rbi +367 -0
  135. data/spec/test_data/v7.0/expected_spell.rbi +340 -0
  136. data/spec/test_data/v7.0/expected_spell_book/habtm_spells.rbi +367 -0
  137. data/spec/test_data/v7.0/expected_spell_book.rbi +499 -0
  138. data/spec/test_data/v7.0/expected_squib.rbi +1204 -0
  139. data/spec/test_data/v7.0/expected_srb_tc_output.txt +1 -0
  140. data/spec/test_data/v7.0/expected_subject/habtm_wizards.rbi +367 -0
  141. data/spec/test_data/v7.0/expected_subject.rbi +340 -0
  142. data/spec/test_data/v7.0/expected_variant_record.rbi +382 -0
  143. data/spec/test_data/v7.0/expected_wand.rbi +611 -0
  144. data/spec/test_data/v7.0/expected_wizard/habtm_subjects.rbi +367 -0
  145. data/spec/test_data/v7.0/expected_wizard.rbi +1280 -0
  146. data/spec/test_data/v7.0/expected_wizard_wo_spellbook.rbi +1274 -0
  147. metadata +243 -1
@@ -0,0 +1,358 @@
1
+ # This is an autogenerated file for dynamic methods in ActiveStorage::Attachment
2
+ # Please rerun bundle exec rake rails_rbi:models[ActiveStorage::Attachment] to regenerate.
3
+
4
+ # typed: strong
5
+ module ActiveStorage::Attachment::ActiveRelation_WhereNot
6
+ sig { params(opts: T.untyped, rest: T.untyped).returns(T.self_type) }
7
+ def not(opts, *rest); end
8
+ end
9
+
10
+ module ActiveStorage::Attachment::GeneratedAssociationMethods
11
+ sig { returns(::ActiveStorage::Blob) }
12
+ def blob; end
13
+
14
+ sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
15
+ def build_blob(*args, &block); end
16
+
17
+ sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
18
+ def create_blob(*args, &block); end
19
+
20
+ sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
21
+ def create_blob!(*args, &block); end
22
+
23
+ sig { params(value: ::ActiveStorage::Blob).void }
24
+ def blob=(value); end
25
+
26
+ sig { returns(::ActiveStorage::Blob) }
27
+ def reload_blob; end
28
+
29
+ sig { returns(T.untyped) }
30
+ def record; end
31
+
32
+ sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
33
+ def build_record(*args, &block); end
34
+
35
+ sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
36
+ def create_record(*args, &block); end
37
+
38
+ sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
39
+ def create_record!(*args, &block); end
40
+
41
+ sig { params(value: T.untyped).void }
42
+ def record=(value); end
43
+
44
+ sig { returns(T.untyped) }
45
+ def reload_record; end
46
+ end
47
+
48
+ module ActiveStorage::Attachment::CustomFinderMethods
49
+ sig { params(limit: Integer).returns(T::Array[ActiveStorage::Attachment]) }
50
+ def first_n(limit); end
51
+
52
+ sig { params(limit: Integer).returns(T::Array[ActiveStorage::Attachment]) }
53
+ def last_n(limit); end
54
+
55
+ sig { params(args: T::Array[T.any(Integer, String)]).returns(T::Array[ActiveStorage::Attachment]) }
56
+ def find_n(*args); end
57
+
58
+ sig { params(id: T.nilable(Integer)).returns(T.nilable(ActiveStorage::Attachment)) }
59
+ def find_by_id(id); end
60
+
61
+ sig { params(id: Integer).returns(ActiveStorage::Attachment) }
62
+ def find_by_id!(id); end
63
+ end
64
+
65
+ class ActiveStorage::Attachment < ActiveStorage::Record
66
+ include ActiveStorage::Attachment::GeneratedAssociationMethods
67
+ extend ActiveStorage::Attachment::CustomFinderMethods
68
+ extend ActiveStorage::Attachment::QueryMethodsReturningRelation
69
+ RelationType = T.type_alias { T.any(ActiveStorage::Attachment::ActiveRecord_Relation, ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy, ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
70
+
71
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
72
+ def self.with_all_variant_records(*args); end
73
+ end
74
+
75
+ class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
76
+ include ActiveStorage::Attachment::ActiveRelation_WhereNot
77
+ include ActiveStorage::Attachment::CustomFinderMethods
78
+ include ActiveStorage::Attachment::QueryMethodsReturningRelation
79
+ Elem = type_member {{fixed: ActiveStorage::Attachment}}
80
+
81
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
82
+ def with_all_variant_records(*args); end
83
+ end
84
+
85
+ class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
86
+ include ActiveStorage::Attachment::ActiveRelation_WhereNot
87
+ include ActiveStorage::Attachment::CustomFinderMethods
88
+ include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
89
+ Elem = type_member {{fixed: ActiveStorage::Attachment}}
90
+
91
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
92
+ def with_all_variant_records(*args); end
93
+ end
94
+
95
+ class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
96
+ include ActiveStorage::Attachment::CustomFinderMethods
97
+ include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
98
+ Elem = type_member {{fixed: ActiveStorage::Attachment}}
99
+
100
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
101
+ def with_all_variant_records(*args); end
102
+
103
+ sig { params(records: T.any(ActiveStorage::Attachment, T::Array[ActiveStorage::Attachment])).returns(T.self_type) }
104
+ def <<(*records); end
105
+
106
+ sig { params(records: T.any(ActiveStorage::Attachment, T::Array[ActiveStorage::Attachment])).returns(T.self_type) }
107
+ def append(*records); end
108
+
109
+ sig { params(records: T.any(ActiveStorage::Attachment, T::Array[ActiveStorage::Attachment])).returns(T.self_type) }
110
+ def push(*records); end
111
+
112
+ sig { params(records: T.any(ActiveStorage::Attachment, T::Array[ActiveStorage::Attachment])).returns(T.self_type) }
113
+ def concat(*records); end
114
+ end
115
+
116
+ module ActiveStorage::Attachment::QueryMethodsReturningRelation
117
+ sig { returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
118
+ def all; end
119
+
120
+ sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
121
+ def unscoped(&block); end
122
+
123
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
124
+ def reselect(*args); end
125
+
126
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
127
+ def order(*args); end
128
+
129
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
130
+ def reorder(*args); end
131
+
132
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
133
+ def group(*args); end
134
+
135
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
136
+ def limit(*args); end
137
+
138
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
139
+ def offset(*args); end
140
+
141
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
142
+ def joins(*args); end
143
+
144
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
145
+ def left_joins(*args); end
146
+
147
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
148
+ def left_outer_joins(*args); end
149
+
150
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
151
+ def where(*args); end
152
+
153
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
154
+ def rewhere(*args); end
155
+
156
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
157
+ def preload(*args); end
158
+
159
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
160
+ def extract_associated(*args); end
161
+
162
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
163
+ def eager_load(*args); end
164
+
165
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
166
+ def includes(*args); end
167
+
168
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
169
+ def from(*args); end
170
+
171
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
172
+ def lock(*args); end
173
+
174
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
175
+ def readonly(*args); end
176
+
177
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
178
+ def or(*args); end
179
+
180
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
181
+ def having(*args); end
182
+
183
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
184
+ def create_with(*args); end
185
+
186
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
187
+ def distinct(*args); end
188
+
189
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
190
+ def references(*args); end
191
+
192
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
193
+ def none(*args); end
194
+
195
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
196
+ def unscope(*args); end
197
+
198
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
199
+ def optimizer_hints(*args); end
200
+
201
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
202
+ def merge(*args); end
203
+
204
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
205
+ def except(*args); end
206
+
207
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
208
+ def only(*args); end
209
+
210
+ sig { params(block: T.proc.params(e: ActiveStorage::Attachment).returns(T::Boolean)).returns(T::Array[ActiveStorage::Attachment]) }
211
+ def select(&block); end
212
+
213
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
214
+ def select_columns(*args); end
215
+
216
+ sig { params(args: Symbol).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
217
+ def where_missing(*args); end
218
+
219
+ sig { params(column: Symbol, values: T::Array[T.untyped]).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
220
+ def in_order_of(column, values); end
221
+
222
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
223
+ def extending(*args, &block); end
224
+
225
+ sig do
226
+ params(
227
+ of: T.nilable(Integer),
228
+ start: T.nilable(Integer),
229
+ finish: T.nilable(Integer),
230
+ load: T.nilable(T::Boolean),
231
+ error_on_ignore: T.nilable(T::Boolean),
232
+ block: T.nilable(T.proc.params(e: ActiveStorage::Attachment::ActiveRecord_Relation).void)
233
+ ).returns(ActiveRecord::Batches::BatchEnumerator)
234
+ end
235
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
236
+ end
237
+
238
+ module ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
239
+ sig { returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
240
+ def all; end
241
+
242
+ sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
243
+ def unscoped(&block); end
244
+
245
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
246
+ def reselect(*args); end
247
+
248
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
249
+ def order(*args); end
250
+
251
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
252
+ def reorder(*args); end
253
+
254
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
255
+ def group(*args); end
256
+
257
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
258
+ def limit(*args); end
259
+
260
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
261
+ def offset(*args); end
262
+
263
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
264
+ def joins(*args); end
265
+
266
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
267
+ def left_joins(*args); end
268
+
269
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
270
+ def left_outer_joins(*args); end
271
+
272
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
273
+ def where(*args); end
274
+
275
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
276
+ def rewhere(*args); end
277
+
278
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
279
+ def preload(*args); end
280
+
281
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
282
+ def extract_associated(*args); end
283
+
284
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
285
+ def eager_load(*args); end
286
+
287
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
288
+ def includes(*args); end
289
+
290
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
291
+ def from(*args); end
292
+
293
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
294
+ def lock(*args); end
295
+
296
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
297
+ def readonly(*args); end
298
+
299
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
300
+ def or(*args); end
301
+
302
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
303
+ def having(*args); end
304
+
305
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
306
+ def create_with(*args); end
307
+
308
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
309
+ def distinct(*args); end
310
+
311
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
312
+ def references(*args); end
313
+
314
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
315
+ def none(*args); end
316
+
317
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
318
+ def unscope(*args); end
319
+
320
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
321
+ def optimizer_hints(*args); end
322
+
323
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
324
+ def merge(*args); end
325
+
326
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
327
+ def except(*args); end
328
+
329
+ sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
330
+ def only(*args); end
331
+
332
+ sig { params(block: T.proc.params(e: ActiveStorage::Attachment).returns(T::Boolean)).returns(T::Array[ActiveStorage::Attachment]) }
333
+ def select(&block); end
334
+
335
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
336
+ def select_columns(*args); end
337
+
338
+ sig { params(args: Symbol).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
339
+ def where_missing(*args); end
340
+
341
+ sig { params(column: Symbol, values: T::Array[T.untyped]).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
342
+ def in_order_of(column, values); end
343
+
344
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
345
+ def extending(*args, &block); end
346
+
347
+ sig do
348
+ params(
349
+ of: T.nilable(Integer),
350
+ start: T.nilable(Integer),
351
+ finish: T.nilable(Integer),
352
+ load: T.nilable(T::Boolean),
353
+ error_on_ignore: T.nilable(T::Boolean),
354
+ block: T.nilable(T.proc.params(e: ActiveStorage::Attachment::ActiveRecord_AssociationRelation).void)
355
+ ).returns(ActiveRecord::Batches::BatchEnumerator)
356
+ end
357
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
358
+ end
@@ -0,0 +1,20 @@
1
+ # typed: strong
2
+ # This is an autogenerated file for Rails' jobs.
3
+ # Please rerun bundle exec rake rails_rbi:jobs to regenerate.
4
+ class AwardHousePointHourglasses
5
+ sig { params(student: Wizard, point: Integer).returns(AwardHousePointHourglasses) }
6
+ def self.perform_later(student:, point:); end
7
+
8
+ sig { params(student: Wizard, point: Integer).returns(AwardHousePointHourglasses) }
9
+ def self.perform_now(student:, point:); end
10
+
11
+ sig do
12
+ params(
13
+ wait: T.nilable(ActiveSupport::Duration),
14
+ wait_until: T.nilable(T.any(ActiveSupport::TimeWithZone, Date, Time)),
15
+ queue: T.nilable(T.any(String, Symbol)),
16
+ priority: T.nilable(Integer)
17
+ ).returns(T.self_type)
18
+ end
19
+ def self.set(wait: nil, wait_until: nil, queue: nil, priority: nil); end
20
+ end