sorbet-rails 0.7.31 → 0.7.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) 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/.github/workflows/publish-gem.yml +9 -19
  5. data/CONTRIBUTING.md +1 -0
  6. data/Gemfile +4 -0
  7. data/README.md +14 -3
  8. data/Rakefile +27 -1
  9. data/lib/sorbet-rails/active_record_rbi_formatter.rb +4 -4
  10. data/lib/sorbet-rails/model_plugins/active_record_querying.rb +27 -0
  11. data/lib/sorbet-rails/model_rbi_formatter.rb +3 -3
  12. data/lib/sorbet-rails/rails_mixins/active_record_overrides.rb +1 -1
  13. data/lib/sorbet-rails/rails_mixins/custom_finder_methods.rb +8 -0
  14. data/lib/sorbet-rails/tasks/rails_rbi.rake +15 -0
  15. data/sorbet-rails.gemspec +2 -2
  16. data/spec/bin/run_all_specs.sh +1 -0
  17. data/spec/custom_finder_methods_spec.rb +23 -0
  18. data/spec/generators/rails-template.rb +2 -7
  19. data/spec/rails_helper.rb +2 -0
  20. data/spec/rake_rails_rbi_models_spec.rb +1 -1
  21. data/spec/support/v5.2/Gemfile.lock +76 -67
  22. data/spec/support/v5.2/sorbet_test_cases.rb +8 -0
  23. data/spec/support/v6.0/Gemfile.lock +93 -85
  24. data/spec/support/v6.0/sorbet_test_cases.rb +8 -0
  25. data/spec/support/v6.1/Gemfile +1 -1
  26. data/spec/support/v6.1/Gemfile.lock +115 -108
  27. data/spec/support/v6.1/sorbet_test_cases.rb +11 -0
  28. data/spec/support/v7.0/.gitattributes +7 -0
  29. data/spec/support/v7.0/.gitignore +35 -0
  30. data/spec/support/v7.0/Gemfile +48 -0
  31. data/spec/support/v7.0/Gemfile.lock +218 -0
  32. data/spec/support/v7.0/README.md +24 -0
  33. data/spec/support/v7.0/Rakefile +6 -0
  34. data/spec/support/v7.0/app/assets/images/.keep +0 -0
  35. data/spec/support/v7.0/app/assets/stylesheets/application.css +1 -0
  36. data/spec/support/v7.0/app/controllers/application_controller.rb +3 -0
  37. data/spec/support/v7.0/app/controllers/concerns/.keep +0 -0
  38. data/spec/support/v7.0/app/helpers/application_helper.rb +3 -0
  39. data/spec/support/v7.0/app/helpers/bar_helper.rb +3 -0
  40. data/spec/support/v7.0/app/helpers/baz_helper.rb +3 -0
  41. data/spec/support/v7.0/app/helpers/foo_helper.rb +3 -0
  42. data/spec/support/v7.0/app/jobs/application_job.rb +8 -0
  43. data/spec/support/v7.0/app/jobs/award_house_point_hourglasses.rb +12 -0
  44. data/spec/support/v7.0/app/mailers/application_mailer.rb +5 -0
  45. data/spec/support/v7.0/app/mailers/daily_prophet_mailer.rb +9 -0
  46. data/spec/support/v7.0/app/mailers/hogwarts_acceptance_mailer.rb +29 -0
  47. data/spec/support/v7.0/app/models/application_record.rb +4 -0
  48. data/spec/support/v7.0/app/models/concerns/.keep +0 -0
  49. data/spec/support/v7.0/app/models/concerns/mythical.rb +11 -0
  50. data/spec/support/v7.0/app/models/headmaster.rb +8 -0
  51. data/spec/support/v7.0/app/models/potion.rb +6 -0
  52. data/spec/support/v7.0/app/models/robe.rb +4 -0
  53. data/spec/support/v7.0/app/models/school.rb +5 -0
  54. data/spec/support/v7.0/app/models/spell.rb +5 -0
  55. data/spec/support/v7.0/app/models/spell_book.rb +18 -0
  56. data/spec/support/v7.0/app/models/squib.rb +6 -0
  57. data/spec/support/v7.0/app/models/subject.rb +5 -0
  58. data/spec/support/v7.0/app/models/wand.rb +19 -0
  59. data/spec/support/v7.0/app/models/wizard.rb +65 -0
  60. data/spec/support/v7.0/app/views/layouts/application.html.erb +15 -0
  61. data/spec/support/v7.0/app/views/layouts/mailer.html.erb +13 -0
  62. data/spec/support/v7.0/app/views/layouts/mailer.text.erb +1 -0
  63. data/spec/support/v7.0/bin/bundle +114 -0
  64. data/spec/support/v7.0/bin/rails +4 -0
  65. data/spec/support/v7.0/bin/rake +4 -0
  66. data/spec/support/v7.0/bin/setup +33 -0
  67. data/spec/support/v7.0/config/application.rb +38 -0
  68. data/spec/support/v7.0/config/boot.rb +4 -0
  69. data/spec/support/v7.0/config/database.yml +25 -0
  70. data/spec/support/v7.0/config/environment.rb +6 -0
  71. data/spec/support/v7.0/config/environments/development.rb +69 -0
  72. data/spec/support/v7.0/config/environments/production.rb +83 -0
  73. data/spec/support/v7.0/config/environments/test.rb +61 -0
  74. data/spec/support/v7.0/config/initializers/content_security_policy.rb +26 -0
  75. data/spec/support/v7.0/config/initializers/filter_parameter_logging.rb +9 -0
  76. data/spec/support/v7.0/config/initializers/inflections.rb +17 -0
  77. data/spec/support/v7.0/config/initializers/permissions_policy.rb +12 -0
  78. data/spec/support/v7.0/config/initializers/sorbet_rails.rb +3 -0
  79. data/spec/support/v7.0/config/locales/en.yml +33 -0
  80. data/spec/support/v7.0/config/puma.rb +44 -0
  81. data/spec/support/v7.0/config/routes.rb +8 -0
  82. data/spec/support/v7.0/config/storage.yml +34 -0
  83. data/spec/support/v7.0/config.ru +6 -0
  84. data/spec/support/v7.0/db/migrate/20190620000001_create_wizards.rb +14 -0
  85. data/spec/support/v7.0/db/migrate/20190620000002_create_wands.rb +12 -0
  86. data/spec/support/v7.0/db/migrate/20190620000003_create_spell_books.rb +10 -0
  87. data/spec/support/v7.0/db/migrate/20190620000004_add_more_column_types_to_wands.rb +14 -0
  88. data/spec/support/v7.0/db/migrate/20190620000005_add_broom_to_wizard.rb +6 -0
  89. data/spec/support/v7.0/db/migrate/20190620000006_add_more_enums_to_wizard.rb +9 -0
  90. data/spec/support/v7.0/db/migrate/20190620000007_add_type_to_wizard.rb +6 -0
  91. data/spec/support/v7.0/db/migrate/20190620000008_add_robe_to_wizard.rb +8 -0
  92. data/spec/support/v7.0/db/migrate/20190620000009_add_school.rb +10 -0
  93. data/spec/support/v7.0/db/migrate/20190620000010_add_subject.rb +8 -0
  94. data/spec/support/v7.0/db/migrate/20190620000011_add_subjects_wizards.rb +8 -0
  95. data/spec/support/v7.0/db/migrate/20190620000012_add_spell.rb +8 -0
  96. data/spec/support/v7.0/db/migrate/20190620000013_add_spells_spell_books.rb +8 -0
  97. data/spec/support/v7.0/db/migrate/20190620000014_create_headmasters.rb +9 -0
  98. data/spec/support/v7.0/db/migrate/20190620000015_add_serialized_to_wizards.rb +9 -0
  99. data/spec/support/v7.0/db/schema.rb +98 -0
  100. data/spec/support/v7.0/db/seeds.rb +8 -0
  101. data/spec/support/v7.0/lib/assets/.keep +0 -0
  102. data/spec/support/v7.0/lib/mythical_rbi_plugin.rb +16 -0
  103. data/spec/support/v7.0/lib/tasks/.keep +0 -0
  104. data/spec/support/v7.0/log/.keep +0 -0
  105. data/spec/support/v7.0/sorbet_test_cases.rb +439 -0
  106. data/spec/support/v7.0/storage/.keep +0 -0
  107. data/spec/support/v7.0/tmp/.keep +0 -0
  108. data/spec/support/v7.0/tmp/pids/.keep +0 -0
  109. data/spec/support/v7.0/tmp/storage/.keep +0 -0
  110. data/spec/support/v7.0/vendor/.keep +0 -0
  111. data/spec/test_data/v5.2/expected_active_record_base.rbi +6 -0
  112. data/spec/test_data/v5.2/expected_active_record_relation.rbi +8 -2
  113. data/spec/test_data/v5.2/expected_attachment.rbi +3 -3
  114. data/spec/test_data/v5.2/expected_blob.rbi +3 -3
  115. data/spec/test_data/v5.2/expected_habtm_subjects.rbi +3 -3
  116. data/spec/test_data/v5.2/expected_habtm_wizards.rbi +3 -3
  117. data/spec/test_data/v5.2/expected_headmaster.rbi +3 -3
  118. data/spec/test_data/v5.2/expected_internal_metadata.rbi +3 -3
  119. data/spec/test_data/v5.2/expected_potion.rbi +3 -3
  120. data/spec/test_data/v5.2/expected_robe.rbi +3 -3
  121. data/spec/test_data/v5.2/expected_schema_migration.rbi +3 -3
  122. data/spec/test_data/v5.2/expected_school.rbi +3 -3
  123. data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +3 -3
  124. data/spec/test_data/v5.2/expected_spell.rbi +3 -3
  125. data/spec/test_data/v5.2/expected_spell_book/habtm_spell_books.rbi +3 -3
  126. data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +3 -3
  127. data/spec/test_data/v5.2/expected_spell_book.rbi +3 -3
  128. data/spec/test_data/v5.2/expected_squib.rbi +3 -3
  129. data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +3 -3
  130. data/spec/test_data/v5.2/expected_subject.rbi +3 -3
  131. data/spec/test_data/v5.2/expected_wand.rbi +3 -3
  132. data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +3 -3
  133. data/spec/test_data/v5.2/expected_wizard.rbi +3 -3
  134. data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +3 -3
  135. data/spec/test_data/v6.0/expected_active_record_base.rbi +6 -0
  136. data/spec/test_data/v6.0/expected_active_record_relation.rbi +8 -2
  137. data/spec/test_data/v6.0/expected_attachment.rbi +3 -3
  138. data/spec/test_data/v6.0/expected_blob.rbi +3 -3
  139. data/spec/test_data/v6.0/expected_habtm_subjects.rbi +3 -3
  140. data/spec/test_data/v6.0/expected_habtm_wizards.rbi +3 -3
  141. data/spec/test_data/v6.0/expected_headmaster.rbi +3 -3
  142. data/spec/test_data/v6.0/expected_internal_metadata.rbi +3 -3
  143. data/spec/test_data/v6.0/expected_potion.rbi +3 -3
  144. data/spec/test_data/v6.0/expected_robe.rbi +3 -3
  145. data/spec/test_data/v6.0/expected_schema_migration.rbi +3 -3
  146. data/spec/test_data/v6.0/expected_school.rbi +3 -3
  147. data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +3 -3
  148. data/spec/test_data/v6.0/expected_spell.rbi +3 -3
  149. data/spec/test_data/v6.0/expected_spell_book/habtm_spell_books.rbi +3 -3
  150. data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +3 -3
  151. data/spec/test_data/v6.0/expected_spell_book.rbi +3 -3
  152. data/spec/test_data/v6.0/expected_squib.rbi +3 -3
  153. data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +3 -3
  154. data/spec/test_data/v6.0/expected_subject.rbi +3 -3
  155. data/spec/test_data/v6.0/expected_wand.rbi +3 -3
  156. data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +3 -3
  157. data/spec/test_data/v6.0/expected_wizard.rbi +3 -3
  158. data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +3 -3
  159. data/spec/test_data/v6.1/expected_active_record_base.rbi +6 -0
  160. data/spec/test_data/v6.1/expected_active_record_relation.rbi +8 -2
  161. data/spec/test_data/v6.1/expected_attachment.rbi +9 -3
  162. data/spec/test_data/v6.1/expected_blob.rbi +9 -3
  163. data/spec/test_data/v6.1/expected_habtm_subjects.rbi +3 -3
  164. data/spec/test_data/v6.1/expected_habtm_wizards.rbi +3 -3
  165. data/spec/test_data/v6.1/expected_headmaster.rbi +9 -3
  166. data/spec/test_data/v6.1/expected_internal_metadata.rbi +9 -3
  167. data/spec/test_data/v6.1/expected_potion.rbi +9 -3
  168. data/spec/test_data/v6.1/expected_record.rbi +9 -3
  169. data/spec/test_data/v6.1/expected_robe.rbi +9 -3
  170. data/spec/test_data/v6.1/expected_schema_migration.rbi +9 -3
  171. data/spec/test_data/v6.1/expected_school.rbi +9 -3
  172. data/spec/test_data/v6.1/expected_spell/habtm_spell_books.rbi +9 -3
  173. data/spec/test_data/v6.1/expected_spell.rbi +9 -3
  174. data/spec/test_data/v6.1/expected_spell_book/habtm_spell_books.rbi +3 -3
  175. data/spec/test_data/v6.1/expected_spell_book/habtm_spells.rbi +9 -3
  176. data/spec/test_data/v6.1/expected_spell_book.rbi +9 -3
  177. data/spec/test_data/v6.1/expected_squib.rbi +9 -3
  178. data/spec/test_data/v6.1/expected_subject/habtm_wizards.rbi +9 -3
  179. data/spec/test_data/v6.1/expected_subject.rbi +9 -3
  180. data/spec/test_data/v6.1/expected_variant_record.rbi +9 -3
  181. data/spec/test_data/v6.1/expected_wand.rbi +9 -3
  182. data/spec/test_data/v6.1/expected_wizard/habtm_subjects.rbi +9 -3
  183. data/spec/test_data/v6.1/expected_wizard.rbi +9 -3
  184. data/spec/test_data/v6.1/expected_wizard_wo_spellbook.rbi +9 -3
  185. data/spec/test_data/v7.0/expected_active_record_base.rbi +119 -0
  186. data/spec/test_data/v7.0/expected_active_record_relation.rbi +180 -0
  187. data/spec/test_data/v7.0/expected_application_job.rbi +20 -0
  188. data/spec/test_data/v7.0/expected_application_mailer.rbi +5 -0
  189. data/spec/test_data/v7.0/expected_attachment.rbi +358 -0
  190. data/spec/test_data/v7.0/expected_award_house_point_hourglasses.rbi +20 -0
  191. data/spec/test_data/v7.0/expected_blob.rbi +394 -0
  192. data/spec/test_data/v7.0/expected_custom_application_job.rbi +21 -0
  193. data/spec/test_data/v7.0/expected_custom_application_mailer.rbi +6 -0
  194. data/spec/test_data/v7.0/expected_custom_award_house_point_hourglasses.rbi +21 -0
  195. data/spec/test_data/v7.0/expected_custom_daily_prophet_mailer.rbi +8 -0
  196. data/spec/test_data/v7.0/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
  197. data/spec/test_data/v7.0/expected_daily_prophet_mailer.rbi +7 -0
  198. data/spec/test_data/v7.0/expected_headmaster.rbi +376 -0
  199. data/spec/test_data/v7.0/expected_helpers.rbi +27 -0
  200. data/spec/test_data/v7.0/expected_helpers_with_application_and_devise_helpers.rbi +34 -0
  201. data/spec/test_data/v7.0/expected_hogwarts_acceptance_mailer.rbi +20 -0
  202. data/spec/test_data/v7.0/expected_internal_metadata.rbi +346 -0
  203. data/spec/test_data/v7.0/expected_no_routes.rbi +4 -0
  204. data/spec/test_data/v7.0/expected_potion.rbi +328 -0
  205. data/spec/test_data/v7.0/expected_record.rbi +307 -0
  206. data/spec/test_data/v7.0/expected_robe.rbi +349 -0
  207. data/spec/test_data/v7.0/expected_routes.rbi +182 -0
  208. data/spec/test_data/v7.0/expected_schema_migration.rbi +319 -0
  209. data/spec/test_data/v7.0/expected_school.rbi +349 -0
  210. data/spec/test_data/v7.0/expected_spell/habtm_spell_books.rbi +367 -0
  211. data/spec/test_data/v7.0/expected_spell.rbi +340 -0
  212. data/spec/test_data/v7.0/expected_spell_book/habtm_spells.rbi +367 -0
  213. data/spec/test_data/v7.0/expected_spell_book.rbi +499 -0
  214. data/spec/test_data/v7.0/expected_squib.rbi +1204 -0
  215. data/spec/test_data/v7.0/expected_srb_tc_output.txt +1 -0
  216. data/spec/test_data/v7.0/expected_subject/habtm_wizards.rbi +367 -0
  217. data/spec/test_data/v7.0/expected_subject.rbi +340 -0
  218. data/spec/test_data/v7.0/expected_variant_record.rbi +382 -0
  219. data/spec/test_data/v7.0/expected_wand.rbi +611 -0
  220. data/spec/test_data/v7.0/expected_wizard/habtm_subjects.rbi +367 -0
  221. data/spec/test_data/v7.0/expected_wizard.rbi +1280 -0
  222. data/spec/test_data/v7.0/expected_wizard_wo_spellbook.rbi +1274 -0
  223. metadata +245 -3
@@ -308,20 +308,20 @@ class Robe::ActiveRecord_Relation < ActiveRecord::Relation
308
308
  include Robe::ActiveRelation_WhereNot
309
309
  include Robe::CustomFinderMethods
310
310
  include Robe::QueryMethodsReturningRelation
311
- Elem = type_member(fixed: Robe)
311
+ Elem = type_member {{fixed: Robe}}
312
312
  end
313
313
 
314
314
  class Robe::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
315
315
  include Robe::ActiveRelation_WhereNot
316
316
  include Robe::CustomFinderMethods
317
317
  include Robe::QueryMethodsReturningAssociationRelation
318
- Elem = type_member(fixed: Robe)
318
+ Elem = type_member {{fixed: Robe}}
319
319
  end
320
320
 
321
321
  class Robe::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
322
322
  include Robe::CustomFinderMethods
323
323
  include Robe::QueryMethodsReturningAssociationRelation
324
- Elem = type_member(fixed: Robe)
324
+ Elem = type_member {{fixed: Robe}}
325
325
 
326
326
  sig { params(records: T.any(Robe, T::Array[Robe])).returns(T.self_type) }
327
327
  def <<(*records); end
@@ -278,20 +278,20 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relat
278
278
  include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
279
279
  include ActiveRecord::SchemaMigration::CustomFinderMethods
280
280
  include ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
281
- Elem = type_member(fixed: ActiveRecord::SchemaMigration)
281
+ Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
282
282
  end
283
283
 
284
284
  class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
285
285
  include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
286
286
  include ActiveRecord::SchemaMigration::CustomFinderMethods
287
287
  include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
288
- Elem = type_member(fixed: ActiveRecord::SchemaMigration)
288
+ Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
289
289
  end
290
290
 
291
291
  class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
292
292
  include ActiveRecord::SchemaMigration::CustomFinderMethods
293
293
  include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
294
- Elem = type_member(fixed: ActiveRecord::SchemaMigration)
294
+ Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
295
295
 
296
296
  sig { params(records: T.any(ActiveRecord::SchemaMigration, T::Array[ActiveRecord::SchemaMigration])).returns(T.self_type) }
297
297
  def <<(*records); end
@@ -308,20 +308,20 @@ class School::ActiveRecord_Relation < ActiveRecord::Relation
308
308
  include School::ActiveRelation_WhereNot
309
309
  include School::CustomFinderMethods
310
310
  include School::QueryMethodsReturningRelation
311
- Elem = type_member(fixed: School)
311
+ Elem = type_member {{fixed: School}}
312
312
  end
313
313
 
314
314
  class School::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
315
315
  include School::ActiveRelation_WhereNot
316
316
  include School::CustomFinderMethods
317
317
  include School::QueryMethodsReturningAssociationRelation
318
- Elem = type_member(fixed: School)
318
+ Elem = type_member {{fixed: School}}
319
319
  end
320
320
 
321
321
  class School::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
322
322
  include School::CustomFinderMethods
323
323
  include School::QueryMethodsReturningAssociationRelation
324
- Elem = type_member(fixed: School)
324
+ Elem = type_member {{fixed: School}}
325
325
 
326
326
  sig { params(records: T.any(School, T::Array[School])).returns(T.self_type) }
327
327
  def <<(*records); end
@@ -326,20 +326,20 @@ class Spell::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relation
326
326
  include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
327
327
  include Spell::HABTM_SpellBooks::CustomFinderMethods
328
328
  include Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
329
- Elem = type_member(fixed: Spell::HABTM_SpellBooks)
329
+ Elem = type_member {{fixed: Spell::HABTM_SpellBooks}}
330
330
  end
331
331
 
332
332
  class Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
333
333
  include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
334
334
  include Spell::HABTM_SpellBooks::CustomFinderMethods
335
335
  include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
336
- Elem = type_member(fixed: Spell::HABTM_SpellBooks)
336
+ Elem = type_member {{fixed: Spell::HABTM_SpellBooks}}
337
337
  end
338
338
 
339
339
  class Spell::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
340
340
  include Spell::HABTM_SpellBooks::CustomFinderMethods
341
341
  include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
342
- Elem = type_member(fixed: Spell::HABTM_SpellBooks)
342
+ Elem = type_member {{fixed: Spell::HABTM_SpellBooks}}
343
343
 
344
344
  sig { params(records: T.any(Spell::HABTM_SpellBooks, T::Array[Spell::HABTM_SpellBooks])).returns(T.self_type) }
345
345
  def <<(*records); end
@@ -299,20 +299,20 @@ class Spell::ActiveRecord_Relation < ActiveRecord::Relation
299
299
  include Spell::ActiveRelation_WhereNot
300
300
  include Spell::CustomFinderMethods
301
301
  include Spell::QueryMethodsReturningRelation
302
- Elem = type_member(fixed: Spell)
302
+ Elem = type_member {{fixed: Spell}}
303
303
  end
304
304
 
305
305
  class Spell::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
306
306
  include Spell::ActiveRelation_WhereNot
307
307
  include Spell::CustomFinderMethods
308
308
  include Spell::QueryMethodsReturningAssociationRelation
309
- Elem = type_member(fixed: Spell)
309
+ Elem = type_member {{fixed: Spell}}
310
310
  end
311
311
 
312
312
  class Spell::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
313
313
  include Spell::CustomFinderMethods
314
314
  include Spell::QueryMethodsReturningAssociationRelation
315
- Elem = type_member(fixed: Spell)
315
+ Elem = type_member {{fixed: Spell}}
316
316
 
317
317
  sig { params(records: T.any(Spell, T::Array[Spell])).returns(T.self_type) }
318
318
  def <<(*records); end
@@ -171,7 +171,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relatio
171
171
  include Enumerable
172
172
  extend T::Sig
173
173
  extend T::Generic
174
- Elem = type_member(fixed: SpellBook::HABTM_SpellBooks)
174
+ Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}}
175
175
 
176
176
  sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_Relation) }
177
177
  def all; end
@@ -297,7 +297,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveReco
297
297
  include Enumerable
298
298
  extend T::Sig
299
299
  extend T::Generic
300
- Elem = type_member(fixed: SpellBook::HABTM_SpellBooks)
300
+ Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}}
301
301
 
302
302
  sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
303
303
  def all; end
@@ -493,7 +493,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < A
493
493
  include Enumerable
494
494
  extend T::Sig
495
495
  extend T::Generic
496
- Elem = type_member(fixed: SpellBook::HABTM_SpellBooks)
496
+ Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}}
497
497
 
498
498
  sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
499
499
  def all; end
@@ -326,20 +326,20 @@ class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
326
326
  include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
327
327
  include SpellBook::HABTM_Spells::CustomFinderMethods
328
328
  include SpellBook::HABTM_Spells::QueryMethodsReturningRelation
329
- Elem = type_member(fixed: SpellBook::HABTM_Spells)
329
+ Elem = type_member {{fixed: SpellBook::HABTM_Spells}}
330
330
  end
331
331
 
332
332
  class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
333
333
  include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
334
334
  include SpellBook::HABTM_Spells::CustomFinderMethods
335
335
  include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
336
- Elem = type_member(fixed: SpellBook::HABTM_Spells)
336
+ Elem = type_member {{fixed: SpellBook::HABTM_Spells}}
337
337
  end
338
338
 
339
339
  class SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
340
340
  include SpellBook::HABTM_Spells::CustomFinderMethods
341
341
  include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
342
- Elem = type_member(fixed: SpellBook::HABTM_Spells)
342
+ Elem = type_member {{fixed: SpellBook::HABTM_Spells}}
343
343
 
344
344
  sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
345
345
  def <<(*records); end
@@ -163,7 +163,7 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
163
163
  include SpellBook::ActiveRelation_WhereNot
164
164
  include SpellBook::CustomFinderMethods
165
165
  include SpellBook::QueryMethodsReturningRelation
166
- Elem = type_member(fixed: SpellBook)
166
+ Elem = type_member {{fixed: SpellBook}}
167
167
 
168
168
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
169
169
  def biology(*args); end
@@ -191,7 +191,7 @@ class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRel
191
191
  include SpellBook::ActiveRelation_WhereNot
192
192
  include SpellBook::CustomFinderMethods
193
193
  include SpellBook::QueryMethodsReturningAssociationRelation
194
- Elem = type_member(fixed: SpellBook)
194
+ Elem = type_member {{fixed: SpellBook}}
195
195
 
196
196
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
197
197
  def biology(*args); end
@@ -218,7 +218,7 @@ end
218
218
  class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
219
219
  include SpellBook::CustomFinderMethods
220
220
  include SpellBook::QueryMethodsReturningAssociationRelation
221
- Elem = type_member(fixed: SpellBook)
221
+ Elem = type_member {{fixed: SpellBook}}
222
222
 
223
223
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
224
224
  def biology(*args); end
@@ -446,7 +446,7 @@ class Squib::ActiveRecord_Relation < ActiveRecord::Relation
446
446
  include Squib::ActiveRelation_WhereNot
447
447
  include Squib::CustomFinderMethods
448
448
  include Squib::QueryMethodsReturningRelation
449
- Elem = type_member(fixed: Squib)
449
+ Elem = type_member {{fixed: Squib}}
450
450
 
451
451
  sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
452
452
  def Gryffindor(*args); end
@@ -564,7 +564,7 @@ class Squib::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelatio
564
564
  include Squib::ActiveRelation_WhereNot
565
565
  include Squib::CustomFinderMethods
566
566
  include Squib::QueryMethodsReturningAssociationRelation
567
- Elem = type_member(fixed: Squib)
567
+ Elem = type_member {{fixed: Squib}}
568
568
 
569
569
  sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
570
570
  def Gryffindor(*args); end
@@ -681,7 +681,7 @@ end
681
681
  class Squib::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
682
682
  include Squib::CustomFinderMethods
683
683
  include Squib::QueryMethodsReturningAssociationRelation
684
- Elem = type_member(fixed: Squib)
684
+ Elem = type_member {{fixed: Squib}}
685
685
 
686
686
  sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
687
687
  def Gryffindor(*args); end
@@ -326,20 +326,20 @@ class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation
326
326
  include Subject::HABTM_Wizards::ActiveRelation_WhereNot
327
327
  include Subject::HABTM_Wizards::CustomFinderMethods
328
328
  include Subject::HABTM_Wizards::QueryMethodsReturningRelation
329
- Elem = type_member(fixed: Subject::HABTM_Wizards)
329
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
330
330
  end
331
331
 
332
332
  class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
333
333
  include Subject::HABTM_Wizards::ActiveRelation_WhereNot
334
334
  include Subject::HABTM_Wizards::CustomFinderMethods
335
335
  include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
336
- Elem = type_member(fixed: Subject::HABTM_Wizards)
336
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
337
337
  end
338
338
 
339
339
  class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
340
340
  include Subject::HABTM_Wizards::CustomFinderMethods
341
341
  include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
342
- Elem = type_member(fixed: Subject::HABTM_Wizards)
342
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
343
343
 
344
344
  sig { params(records: T.any(Subject::HABTM_Wizards, T::Array[Subject::HABTM_Wizards])).returns(T.self_type) }
345
345
  def <<(*records); end
@@ -299,20 +299,20 @@ class Subject::ActiveRecord_Relation < ActiveRecord::Relation
299
299
  include Subject::ActiveRelation_WhereNot
300
300
  include Subject::CustomFinderMethods
301
301
  include Subject::QueryMethodsReturningRelation
302
- Elem = type_member(fixed: Subject)
302
+ Elem = type_member {{fixed: Subject}}
303
303
  end
304
304
 
305
305
  class Subject::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
306
306
  include Subject::ActiveRelation_WhereNot
307
307
  include Subject::CustomFinderMethods
308
308
  include Subject::QueryMethodsReturningAssociationRelation
309
- Elem = type_member(fixed: Subject)
309
+ Elem = type_member {{fixed: Subject}}
310
310
  end
311
311
 
312
312
  class Subject::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
313
313
  include Subject::CustomFinderMethods
314
314
  include Subject::QueryMethodsReturningAssociationRelation
315
- Elem = type_member(fixed: Subject)
315
+ Elem = type_member {{fixed: Subject}}
316
316
 
317
317
  sig { params(records: T.any(Subject, T::Array[Subject])).returns(T.self_type) }
318
318
  def <<(*records); end
@@ -266,7 +266,7 @@ class Wand::ActiveRecord_Relation < ActiveRecord::Relation
266
266
  include Wand::ActiveRelation_WhereNot
267
267
  include Wand::CustomFinderMethods
268
268
  include Wand::QueryMethodsReturningRelation
269
- Elem = type_member(fixed: Wand)
269
+ Elem = type_member {{fixed: Wand}}
270
270
 
271
271
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
272
272
  def basilisk_horn(*args); end
@@ -297,7 +297,7 @@ class Wand::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
297
297
  include Wand::ActiveRelation_WhereNot
298
298
  include Wand::CustomFinderMethods
299
299
  include Wand::QueryMethodsReturningAssociationRelation
300
- Elem = type_member(fixed: Wand)
300
+ Elem = type_member {{fixed: Wand}}
301
301
 
302
302
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
303
303
  def basilisk_horn(*args); end
@@ -327,7 +327,7 @@ end
327
327
  class Wand::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
328
328
  include Wand::CustomFinderMethods
329
329
  include Wand::QueryMethodsReturningAssociationRelation
330
- Elem = type_member(fixed: Wand)
330
+ Elem = type_member {{fixed: Wand}}
331
331
 
332
332
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
333
333
  def basilisk_horn(*args); end
@@ -326,20 +326,20 @@ class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation
326
326
  include Wizard::HABTM_Subjects::ActiveRelation_WhereNot
327
327
  include Wizard::HABTM_Subjects::CustomFinderMethods
328
328
  include Wizard::HABTM_Subjects::QueryMethodsReturningRelation
329
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
329
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
330
330
  end
331
331
 
332
332
  class Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
333
333
  include Wizard::HABTM_Subjects::ActiveRelation_WhereNot
334
334
  include Wizard::HABTM_Subjects::CustomFinderMethods
335
335
  include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
336
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
336
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
337
337
  end
338
338
 
339
339
  class Wizard::HABTM_Subjects::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
340
340
  include Wizard::HABTM_Subjects::CustomFinderMethods
341
341
  include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
342
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
342
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
343
343
 
344
344
  sig { params(records: T.any(Wizard::HABTM_Subjects, T::Array[Wizard::HABTM_Subjects])).returns(T.self_type) }
345
345
  def <<(*records); end
@@ -522,7 +522,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
522
522
  include Wizard::ActiveRelation_WhereNot
523
523
  include Wizard::CustomFinderMethods
524
524
  include Wizard::QueryMethodsReturningRelation
525
- Elem = type_member(fixed: Wizard)
525
+ Elem = type_member {{fixed: Wizard}}
526
526
 
527
527
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
528
528
  def Gryffindor(*args); end
@@ -640,7 +640,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
640
640
  include Wizard::ActiveRelation_WhereNot
641
641
  include Wizard::CustomFinderMethods
642
642
  include Wizard::QueryMethodsReturningAssociationRelation
643
- Elem = type_member(fixed: Wizard)
643
+ Elem = type_member {{fixed: Wizard}}
644
644
 
645
645
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
646
646
  def Gryffindor(*args); end
@@ -757,7 +757,7 @@ end
757
757
  class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
758
758
  include Wizard::CustomFinderMethods
759
759
  include Wizard::QueryMethodsReturningAssociationRelation
760
- Elem = type_member(fixed: Wizard)
760
+ Elem = type_member {{fixed: Wizard}}
761
761
 
762
762
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
763
763
  def Gryffindor(*args); end
@@ -522,7 +522,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
522
522
  include Wizard::ActiveRelation_WhereNot
523
523
  include Wizard::CustomFinderMethods
524
524
  include Wizard::QueryMethodsReturningRelation
525
- Elem = type_member(fixed: Wizard)
525
+ Elem = type_member {{fixed: Wizard}}
526
526
 
527
527
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
528
528
  def Gryffindor(*args); end
@@ -640,7 +640,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
640
640
  include Wizard::ActiveRelation_WhereNot
641
641
  include Wizard::CustomFinderMethods
642
642
  include Wizard::QueryMethodsReturningAssociationRelation
643
- Elem = type_member(fixed: Wizard)
643
+ Elem = type_member {{fixed: Wizard}}
644
644
 
645
645
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
646
646
  def Gryffindor(*args); end
@@ -757,7 +757,7 @@ end
757
757
  class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
758
758
  include Wizard::CustomFinderMethods
759
759
  include Wizard::QueryMethodsReturningAssociationRelation
760
- Elem = type_member(fixed: Wizard)
760
+ Elem = type_member {{fixed: Wizard}}
761
761
 
762
762
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
763
763
  def Gryffindor(*args); end
@@ -56,6 +56,12 @@ class ActiveRecord::Base
56
56
  sig { returns(T.attached_class) }
57
57
  def self.last!; end
58
58
 
59
+ sig { returns(T.nilable(T.attached_class)) }
60
+ def self.take; end
61
+
62
+ sig { returns(T.attached_class) }
63
+ def self.take!; end
64
+
59
65
  sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: T.attached_class).void)).returns(T.attached_class) }
60
66
  def self.create(attributes = nil, &block); end
61
67
 
@@ -58,6 +58,12 @@ class ActiveRecord::Relation
58
58
  sig { returns(Elem) }
59
59
  def last!; end
60
60
 
61
+ sig { returns(T.nilable(Elem)) }
62
+ def take; end
63
+
64
+ sig { returns(Elem) }
65
+ def take!; end
66
+
61
67
  sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Elem).void)).returns(Elem) }
62
68
  def create(attributes = nil, &block); end
63
69
 
@@ -133,7 +139,7 @@ class ActiveRecord::Relation
133
139
  end
134
140
 
135
141
  class ActiveRecord::AssociationRelation < ActiveRecord::Relation
136
- Elem = type_member(fixed: T.untyped)
142
+ Elem = type_member {{fixed: T.untyped}}
137
143
 
138
144
  sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Elem).void)).returns(Elem) }
139
145
  def new(attributes = nil, &block); end
@@ -149,7 +155,7 @@ class ActiveRecord::AssociationRelation < ActiveRecord::Relation
149
155
  end
150
156
 
151
157
  class ActiveRecord::Associations::CollectionProxy < ActiveRecord::Relation
152
- Elem = type_member(fixed: T.untyped)
158
+ Elem = type_member {{fixed: T.untyped}}
153
159
 
154
160
  sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Elem).void)).returns(Elem) }
155
161
  def new(attributes = nil, &block); end
@@ -169,6 +169,9 @@ module ActiveStorage::Attachment::QueryMethodsReturningRelation
169
169
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
170
170
  def select_columns(*args); end
171
171
 
172
+ sig { params(args: Symbol).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
173
+ def where_missing(*args); end
174
+
172
175
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
173
176
  def extending(*args, &block); end
174
177
 
@@ -285,6 +288,9 @@ module ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
285
288
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
286
289
  def select_columns(*args); end
287
290
 
291
+ sig { params(args: Symbol).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
292
+ def where_missing(*args); end
293
+
288
294
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
289
295
  def extending(*args, &block); end
290
296
 
@@ -305,20 +311,20 @@ class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
305
311
  include ActiveStorage::Attachment::ActiveRelation_WhereNot
306
312
  include ActiveStorage::Attachment::CustomFinderMethods
307
313
  include ActiveStorage::Attachment::QueryMethodsReturningRelation
308
- Elem = type_member(fixed: ActiveStorage::Attachment)
314
+ Elem = type_member {{fixed: ActiveStorage::Attachment}}
309
315
  end
310
316
 
311
317
  class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
312
318
  include ActiveStorage::Attachment::ActiveRelation_WhereNot
313
319
  include ActiveStorage::Attachment::CustomFinderMethods
314
320
  include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
315
- Elem = type_member(fixed: ActiveStorage::Attachment)
321
+ Elem = type_member {{fixed: ActiveStorage::Attachment}}
316
322
  end
317
323
 
318
324
  class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
319
325
  include ActiveStorage::Attachment::CustomFinderMethods
320
326
  include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
321
- Elem = type_member(fixed: ActiveStorage::Attachment)
327
+ Elem = type_member {{fixed: ActiveStorage::Attachment}}
322
328
 
323
329
  sig { params(records: T.any(ActiveStorage::Attachment, T::Array[ActiveStorage::Attachment])).returns(T.self_type) }
324
330
  def <<(*records); end
@@ -41,7 +41,7 @@ class ActiveStorage::Blob::ActiveRecord_Relation < ActiveRecord::Relation
41
41
  include ActiveStorage::Blob::ActiveRelation_WhereNot
42
42
  include ActiveStorage::Blob::CustomFinderMethods
43
43
  include ActiveStorage::Blob::QueryMethodsReturningRelation
44
- Elem = type_member(fixed: ActiveStorage::Blob)
44
+ Elem = type_member {{fixed: ActiveStorage::Blob}}
45
45
 
46
46
  sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
47
47
  def unattached(*args); end
@@ -54,7 +54,7 @@ class ActiveStorage::Blob::ActiveRecord_AssociationRelation < ActiveRecord::Asso
54
54
  include ActiveStorage::Blob::ActiveRelation_WhereNot
55
55
  include ActiveStorage::Blob::CustomFinderMethods
56
56
  include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
57
- Elem = type_member(fixed: ActiveStorage::Blob)
57
+ Elem = type_member {{fixed: ActiveStorage::Blob}}
58
58
 
59
59
  sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
60
60
  def unattached(*args); end
@@ -66,7 +66,7 @@ end
66
66
  class ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
67
67
  include ActiveStorage::Blob::CustomFinderMethods
68
68
  include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
69
- Elem = type_member(fixed: ActiveStorage::Blob)
69
+ Elem = type_member {{fixed: ActiveStorage::Blob}}
70
70
 
71
71
  sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
72
72
  def unattached(*args); end
@@ -187,6 +187,9 @@ module ActiveStorage::Blob::QueryMethodsReturningRelation
187
187
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
188
188
  def select_columns(*args); end
189
189
 
190
+ sig { params(args: Symbol).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
191
+ def where_missing(*args); end
192
+
190
193
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
191
194
  def extending(*args, &block); end
192
195
 
@@ -303,6 +306,9 @@ module ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
303
306
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
304
307
  def select_columns(*args); end
305
308
 
309
+ sig { params(args: Symbol).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
310
+ def where_missing(*args); end
311
+
306
312
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
307
313
  def extending(*args, &block); end
308
314
 
@@ -194,7 +194,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation
194
194
  include Enumerable
195
195
  extend T::Sig
196
196
  extend T::Generic
197
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
197
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
198
198
 
199
199
  sig { returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
200
200
  def all; end
@@ -320,7 +320,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation < ActiveRecord::A
320
320
  include Enumerable
321
321
  extend T::Sig
322
322
  extend T::Generic
323
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
323
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
324
324
 
325
325
  sig { returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
326
326
  def all; end
@@ -516,7 +516,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_Associations_CollectionProxy < Active
516
516
  include Enumerable
517
517
  extend T::Sig
518
518
  extend T::Generic
519
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
519
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
520
520
 
521
521
  sig { returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
522
522
  def all; end
@@ -194,7 +194,7 @@ class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation
194
194
  include Enumerable
195
195
  extend T::Sig
196
196
  extend T::Generic
197
- Elem = type_member(fixed: Subject::HABTM_Wizards)
197
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
198
198
 
199
199
  sig { returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
200
200
  def all; end
@@ -320,7 +320,7 @@ class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::A
320
320
  include Enumerable
321
321
  extend T::Sig
322
322
  extend T::Generic
323
- Elem = type_member(fixed: Subject::HABTM_Wizards)
323
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
324
324
 
325
325
  sig { returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
326
326
  def all; end
@@ -516,7 +516,7 @@ class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < Active
516
516
  include Enumerable
517
517
  extend T::Sig
518
518
  extend T::Generic
519
- Elem = type_member(fixed: Subject::HABTM_Wizards)
519
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
520
520
 
521
521
  sig { returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
522
522
  def all; end
@@ -199,6 +199,9 @@ module Headmaster::QueryMethodsReturningRelation
199
199
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Headmaster::ActiveRecord_Relation) }
200
200
  def select_columns(*args); end
201
201
 
202
+ sig { params(args: Symbol).returns(Headmaster::ActiveRecord_Relation) }
203
+ def where_missing(*args); end
204
+
202
205
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_Relation) }
203
206
  def extending(*args, &block); end
204
207
 
@@ -315,6 +318,9 @@ module Headmaster::QueryMethodsReturningAssociationRelation
315
318
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Headmaster::ActiveRecord_AssociationRelation) }
316
319
  def select_columns(*args); end
317
320
 
321
+ sig { params(args: Symbol).returns(Headmaster::ActiveRecord_AssociationRelation) }
322
+ def where_missing(*args); end
323
+
318
324
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_AssociationRelation) }
319
325
  def extending(*args, &block); end
320
326
 
@@ -335,20 +341,20 @@ class Headmaster::ActiveRecord_Relation < ActiveRecord::Relation
335
341
  include Headmaster::ActiveRelation_WhereNot
336
342
  include Headmaster::CustomFinderMethods
337
343
  include Headmaster::QueryMethodsReturningRelation
338
- Elem = type_member(fixed: Headmaster)
344
+ Elem = type_member {{fixed: Headmaster}}
339
345
  end
340
346
 
341
347
  class Headmaster::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
342
348
  include Headmaster::ActiveRelation_WhereNot
343
349
  include Headmaster::CustomFinderMethods
344
350
  include Headmaster::QueryMethodsReturningAssociationRelation
345
- Elem = type_member(fixed: Headmaster)
351
+ Elem = type_member {{fixed: Headmaster}}
346
352
  end
347
353
 
348
354
  class Headmaster::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
349
355
  include Headmaster::CustomFinderMethods
350
356
  include Headmaster::QueryMethodsReturningAssociationRelation
351
- Elem = type_member(fixed: Headmaster)
357
+ Elem = type_member {{fixed: Headmaster}}
352
358
 
353
359
  sig { params(records: T.any(Headmaster, T::Array[Headmaster])).returns(T.self_type) }
354
360
  def <<(*records); end