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
@@ -263,20 +263,20 @@ class Potion::ActiveRecord_Relation < ActiveRecord::Relation
263
263
  include Potion::ActiveRelation_WhereNot
264
264
  include Potion::CustomFinderMethods
265
265
  include Potion::QueryMethodsReturningRelation
266
- Elem = type_member(fixed: Potion)
266
+ Elem = type_member {{fixed: Potion}}
267
267
  end
268
268
 
269
269
  class Potion::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
270
270
  include Potion::ActiveRelation_WhereNot
271
271
  include Potion::CustomFinderMethods
272
272
  include Potion::QueryMethodsReturningAssociationRelation
273
- Elem = type_member(fixed: Potion)
273
+ Elem = type_member {{fixed: Potion}}
274
274
  end
275
275
 
276
276
  class Potion::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
277
277
  include Potion::CustomFinderMethods
278
278
  include Potion::QueryMethodsReturningAssociationRelation
279
- Elem = type_member(fixed: Potion)
279
+ Elem = type_member {{fixed: Potion}}
280
280
 
281
281
  sig { params(records: T.any(Potion, T::Array[Potion])).returns(T.self_type) }
282
282
  def <<(*records); end
@@ -284,20 +284,20 @@ class Robe::ActiveRecord_Relation < ActiveRecord::Relation
284
284
  include Robe::ActiveRelation_WhereNot
285
285
  include Robe::CustomFinderMethods
286
286
  include Robe::QueryMethodsReturningRelation
287
- Elem = type_member(fixed: Robe)
287
+ Elem = type_member {{fixed: Robe}}
288
288
  end
289
289
 
290
290
  class Robe::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
291
291
  include Robe::ActiveRelation_WhereNot
292
292
  include Robe::CustomFinderMethods
293
293
  include Robe::QueryMethodsReturningAssociationRelation
294
- Elem = type_member(fixed: Robe)
294
+ Elem = type_member {{fixed: Robe}}
295
295
  end
296
296
 
297
297
  class Robe::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
298
298
  include Robe::CustomFinderMethods
299
299
  include Robe::QueryMethodsReturningAssociationRelation
300
- Elem = type_member(fixed: Robe)
300
+ Elem = type_member {{fixed: Robe}}
301
301
 
302
302
  sig { params(records: T.any(Robe, T::Array[Robe])).returns(T.self_type) }
303
303
  def <<(*records); end
@@ -254,20 +254,20 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relat
254
254
  include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
255
255
  include ActiveRecord::SchemaMigration::CustomFinderMethods
256
256
  include ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
257
- Elem = type_member(fixed: ActiveRecord::SchemaMigration)
257
+ Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
258
258
  end
259
259
 
260
260
  class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
261
261
  include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
262
262
  include ActiveRecord::SchemaMigration::CustomFinderMethods
263
263
  include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
264
- Elem = type_member(fixed: ActiveRecord::SchemaMigration)
264
+ Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
265
265
  end
266
266
 
267
267
  class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
268
268
  include ActiveRecord::SchemaMigration::CustomFinderMethods
269
269
  include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
270
- Elem = type_member(fixed: ActiveRecord::SchemaMigration)
270
+ Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
271
271
 
272
272
  sig { params(records: T.any(ActiveRecord::SchemaMigration, T::Array[ActiveRecord::SchemaMigration])).returns(T.self_type) }
273
273
  def <<(*records); end
@@ -284,20 +284,20 @@ class School::ActiveRecord_Relation < ActiveRecord::Relation
284
284
  include School::ActiveRelation_WhereNot
285
285
  include School::CustomFinderMethods
286
286
  include School::QueryMethodsReturningRelation
287
- Elem = type_member(fixed: School)
287
+ Elem = type_member {{fixed: School}}
288
288
  end
289
289
 
290
290
  class School::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
291
291
  include School::ActiveRelation_WhereNot
292
292
  include School::CustomFinderMethods
293
293
  include School::QueryMethodsReturningAssociationRelation
294
- Elem = type_member(fixed: School)
294
+ Elem = type_member {{fixed: School}}
295
295
  end
296
296
 
297
297
  class School::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
298
298
  include School::CustomFinderMethods
299
299
  include School::QueryMethodsReturningAssociationRelation
300
- Elem = type_member(fixed: School)
300
+ Elem = type_member {{fixed: School}}
301
301
 
302
302
  sig { params(records: T.any(School, T::Array[School])).returns(T.self_type) }
303
303
  def <<(*records); end
@@ -302,20 +302,20 @@ class Spell::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relation
302
302
  include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
303
303
  include Spell::HABTM_SpellBooks::CustomFinderMethods
304
304
  include Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
305
- Elem = type_member(fixed: Spell::HABTM_SpellBooks)
305
+ Elem = type_member {{fixed: Spell::HABTM_SpellBooks}}
306
306
  end
307
307
 
308
308
  class Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
309
309
  include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
310
310
  include Spell::HABTM_SpellBooks::CustomFinderMethods
311
311
  include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
312
- Elem = type_member(fixed: Spell::HABTM_SpellBooks)
312
+ Elem = type_member {{fixed: Spell::HABTM_SpellBooks}}
313
313
  end
314
314
 
315
315
  class Spell::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
316
316
  include Spell::HABTM_SpellBooks::CustomFinderMethods
317
317
  include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
318
- Elem = type_member(fixed: Spell::HABTM_SpellBooks)
318
+ Elem = type_member {{fixed: Spell::HABTM_SpellBooks}}
319
319
 
320
320
  sig { params(records: T.any(Spell::HABTM_SpellBooks, T::Array[Spell::HABTM_SpellBooks])).returns(T.self_type) }
321
321
  def <<(*records); end
@@ -275,20 +275,20 @@ class Spell::ActiveRecord_Relation < ActiveRecord::Relation
275
275
  include Spell::ActiveRelation_WhereNot
276
276
  include Spell::CustomFinderMethods
277
277
  include Spell::QueryMethodsReturningRelation
278
- Elem = type_member(fixed: Spell)
278
+ Elem = type_member {{fixed: Spell}}
279
279
  end
280
280
 
281
281
  class Spell::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
282
282
  include Spell::ActiveRelation_WhereNot
283
283
  include Spell::CustomFinderMethods
284
284
  include Spell::QueryMethodsReturningAssociationRelation
285
- Elem = type_member(fixed: Spell)
285
+ Elem = type_member {{fixed: Spell}}
286
286
  end
287
287
 
288
288
  class Spell::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
289
289
  include Spell::CustomFinderMethods
290
290
  include Spell::QueryMethodsReturningAssociationRelation
291
- Elem = type_member(fixed: Spell)
291
+ Elem = type_member {{fixed: Spell}}
292
292
 
293
293
  sig { params(records: T.any(Spell, T::Array[Spell])).returns(T.self_type) }
294
294
  def <<(*records); end
@@ -159,7 +159,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relatio
159
159
  include Enumerable
160
160
  extend T::Sig
161
161
  extend T::Generic
162
- Elem = type_member(fixed: SpellBook::HABTM_SpellBooks)
162
+ Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}}
163
163
 
164
164
  sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_Relation) }
165
165
  def all; end
@@ -273,7 +273,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveReco
273
273
  include Enumerable
274
274
  extend T::Sig
275
275
  extend T::Generic
276
- Elem = type_member(fixed: SpellBook::HABTM_SpellBooks)
276
+ Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}}
277
277
 
278
278
  sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
279
279
  def all; end
@@ -457,7 +457,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < A
457
457
  include Enumerable
458
458
  extend T::Sig
459
459
  extend T::Generic
460
- Elem = type_member(fixed: SpellBook::HABTM_SpellBooks)
460
+ Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}}
461
461
 
462
462
  sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
463
463
  def all; end
@@ -302,20 +302,20 @@ class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
302
302
  include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
303
303
  include SpellBook::HABTM_Spells::CustomFinderMethods
304
304
  include SpellBook::HABTM_Spells::QueryMethodsReturningRelation
305
- Elem = type_member(fixed: SpellBook::HABTM_Spells)
305
+ Elem = type_member {{fixed: SpellBook::HABTM_Spells}}
306
306
  end
307
307
 
308
308
  class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
309
309
  include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
310
310
  include SpellBook::HABTM_Spells::CustomFinderMethods
311
311
  include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
312
- Elem = type_member(fixed: SpellBook::HABTM_Spells)
312
+ Elem = type_member {{fixed: SpellBook::HABTM_Spells}}
313
313
  end
314
314
 
315
315
  class SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
316
316
  include SpellBook::HABTM_Spells::CustomFinderMethods
317
317
  include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
318
- Elem = type_member(fixed: SpellBook::HABTM_Spells)
318
+ Elem = type_member {{fixed: SpellBook::HABTM_Spells}}
319
319
 
320
320
  sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
321
321
  def <<(*records); end
@@ -154,7 +154,7 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
154
154
  include SpellBook::ActiveRelation_WhereNot
155
155
  include SpellBook::CustomFinderMethods
156
156
  include SpellBook::QueryMethodsReturningRelation
157
- Elem = type_member(fixed: SpellBook)
157
+ Elem = type_member {{fixed: SpellBook}}
158
158
 
159
159
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
160
160
  def biology(*args); end
@@ -173,7 +173,7 @@ class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRel
173
173
  include SpellBook::ActiveRelation_WhereNot
174
174
  include SpellBook::CustomFinderMethods
175
175
  include SpellBook::QueryMethodsReturningAssociationRelation
176
- Elem = type_member(fixed: SpellBook)
176
+ Elem = type_member {{fixed: SpellBook}}
177
177
 
178
178
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
179
179
  def biology(*args); end
@@ -191,7 +191,7 @@ end
191
191
  class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
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
@@ -505,7 +505,7 @@ class Squib::ActiveRecord_Relation < ActiveRecord::Relation
505
505
  include Squib::ActiveRelation_WhereNot
506
506
  include Squib::CustomFinderMethods
507
507
  include Squib::QueryMethodsReturningRelation
508
- Elem = type_member(fixed: Squib)
508
+ Elem = type_member {{fixed: Squib}}
509
509
 
510
510
  sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
511
511
  def Gryffindor(*args); end
@@ -572,7 +572,7 @@ class Squib::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelatio
572
572
  include Squib::ActiveRelation_WhereNot
573
573
  include Squib::CustomFinderMethods
574
574
  include Squib::QueryMethodsReturningAssociationRelation
575
- Elem = type_member(fixed: Squib)
575
+ Elem = type_member {{fixed: Squib}}
576
576
 
577
577
  sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
578
578
  def Gryffindor(*args); end
@@ -638,7 +638,7 @@ end
638
638
  class Squib::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
639
639
  include Squib::CustomFinderMethods
640
640
  include Squib::QueryMethodsReturningAssociationRelation
641
- Elem = type_member(fixed: Squib)
641
+ Elem = type_member {{fixed: Squib}}
642
642
 
643
643
  sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
644
644
  def Gryffindor(*args); end
@@ -302,20 +302,20 @@ class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation
302
302
  include Subject::HABTM_Wizards::ActiveRelation_WhereNot
303
303
  include Subject::HABTM_Wizards::CustomFinderMethods
304
304
  include Subject::HABTM_Wizards::QueryMethodsReturningRelation
305
- Elem = type_member(fixed: Subject::HABTM_Wizards)
305
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
306
306
  end
307
307
 
308
308
  class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
309
309
  include Subject::HABTM_Wizards::ActiveRelation_WhereNot
310
310
  include Subject::HABTM_Wizards::CustomFinderMethods
311
311
  include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
312
- Elem = type_member(fixed: Subject::HABTM_Wizards)
312
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
313
313
  end
314
314
 
315
315
  class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
316
316
  include Subject::HABTM_Wizards::CustomFinderMethods
317
317
  include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
318
- Elem = type_member(fixed: Subject::HABTM_Wizards)
318
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
319
319
 
320
320
  sig { params(records: T.any(Subject::HABTM_Wizards, T::Array[Subject::HABTM_Wizards])).returns(T.self_type) }
321
321
  def <<(*records); end
@@ -275,20 +275,20 @@ class Subject::ActiveRecord_Relation < ActiveRecord::Relation
275
275
  include Subject::ActiveRelation_WhereNot
276
276
  include Subject::CustomFinderMethods
277
277
  include Subject::QueryMethodsReturningRelation
278
- Elem = type_member(fixed: Subject)
278
+ Elem = type_member {{fixed: Subject}}
279
279
  end
280
280
 
281
281
  class Subject::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
282
282
  include Subject::ActiveRelation_WhereNot
283
283
  include Subject::CustomFinderMethods
284
284
  include Subject::QueryMethodsReturningAssociationRelation
285
- Elem = type_member(fixed: Subject)
285
+ Elem = type_member {{fixed: Subject}}
286
286
  end
287
287
 
288
288
  class Subject::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
289
289
  include Subject::CustomFinderMethods
290
290
  include Subject::QueryMethodsReturningAssociationRelation
291
- Elem = type_member(fixed: Subject)
291
+ Elem = type_member {{fixed: Subject}}
292
292
 
293
293
  sig { params(records: T.any(Subject, T::Array[Subject])).returns(T.self_type) }
294
294
  def <<(*records); end
@@ -254,7 +254,7 @@ class Wand::ActiveRecord_Relation < ActiveRecord::Relation
254
254
  include Wand::ActiveRelation_WhereNot
255
255
  include Wand::CustomFinderMethods
256
256
  include Wand::QueryMethodsReturningRelation
257
- Elem = type_member(fixed: Wand)
257
+ Elem = type_member {{fixed: Wand}}
258
258
 
259
259
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
260
260
  def basilisk_horn(*args); end
@@ -273,7 +273,7 @@ class Wand::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
273
273
  include Wand::ActiveRelation_WhereNot
274
274
  include Wand::CustomFinderMethods
275
275
  include Wand::QueryMethodsReturningAssociationRelation
276
- Elem = type_member(fixed: Wand)
276
+ Elem = type_member {{fixed: Wand}}
277
277
 
278
278
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
279
279
  def basilisk_horn(*args); end
@@ -291,7 +291,7 @@ end
291
291
  class Wand::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
292
292
  include Wand::CustomFinderMethods
293
293
  include Wand::QueryMethodsReturningAssociationRelation
294
- Elem = type_member(fixed: Wand)
294
+ Elem = type_member {{fixed: Wand}}
295
295
 
296
296
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
297
297
  def basilisk_horn(*args); end
@@ -302,20 +302,20 @@ class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation
302
302
  include Wizard::HABTM_Subjects::ActiveRelation_WhereNot
303
303
  include Wizard::HABTM_Subjects::CustomFinderMethods
304
304
  include Wizard::HABTM_Subjects::QueryMethodsReturningRelation
305
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
305
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
306
306
  end
307
307
 
308
308
  class Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
309
309
  include Wizard::HABTM_Subjects::ActiveRelation_WhereNot
310
310
  include Wizard::HABTM_Subjects::CustomFinderMethods
311
311
  include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
312
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
312
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
313
313
  end
314
314
 
315
315
  class Wizard::HABTM_Subjects::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
316
316
  include Wizard::HABTM_Subjects::CustomFinderMethods
317
317
  include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
318
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
318
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
319
319
 
320
320
  sig { params(records: T.any(Wizard::HABTM_Subjects, T::Array[Wizard::HABTM_Subjects])).returns(T.self_type) }
321
321
  def <<(*records); end
@@ -581,7 +581,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
581
581
  include Wizard::ActiveRelation_WhereNot
582
582
  include Wizard::CustomFinderMethods
583
583
  include Wizard::QueryMethodsReturningRelation
584
- Elem = type_member(fixed: Wizard)
584
+ Elem = type_member {{fixed: Wizard}}
585
585
 
586
586
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
587
587
  def Gryffindor(*args); end
@@ -648,7 +648,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
648
648
  include Wizard::ActiveRelation_WhereNot
649
649
  include Wizard::CustomFinderMethods
650
650
  include Wizard::QueryMethodsReturningAssociationRelation
651
- Elem = type_member(fixed: Wizard)
651
+ Elem = type_member {{fixed: Wizard}}
652
652
 
653
653
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
654
654
  def Gryffindor(*args); end
@@ -714,7 +714,7 @@ end
714
714
  class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
715
715
  include Wizard::CustomFinderMethods
716
716
  include Wizard::QueryMethodsReturningAssociationRelation
717
- Elem = type_member(fixed: Wizard)
717
+ Elem = type_member {{fixed: Wizard}}
718
718
 
719
719
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
720
720
  def Gryffindor(*args); end
@@ -575,7 +575,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
575
575
  include Wizard::ActiveRelation_WhereNot
576
576
  include Wizard::CustomFinderMethods
577
577
  include Wizard::QueryMethodsReturningRelation
578
- Elem = type_member(fixed: Wizard)
578
+ Elem = type_member {{fixed: Wizard}}
579
579
 
580
580
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
581
581
  def Gryffindor(*args); end
@@ -642,7 +642,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
642
642
  include Wizard::ActiveRelation_WhereNot
643
643
  include Wizard::CustomFinderMethods
644
644
  include Wizard::QueryMethodsReturningAssociationRelation
645
- Elem = type_member(fixed: Wizard)
645
+ Elem = type_member {{fixed: Wizard}}
646
646
 
647
647
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
648
648
  def Gryffindor(*args); end
@@ -708,7 +708,7 @@ end
708
708
  class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
709
709
  include Wizard::CustomFinderMethods
710
710
  include Wizard::QueryMethodsReturningAssociationRelation
711
- Elem = type_member(fixed: Wizard)
711
+ Elem = type_member {{fixed: Wizard}}
712
712
 
713
713
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
714
714
  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
@@ -305,20 +305,20 @@ class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
305
305
  include ActiveStorage::Attachment::ActiveRelation_WhereNot
306
306
  include ActiveStorage::Attachment::CustomFinderMethods
307
307
  include ActiveStorage::Attachment::QueryMethodsReturningRelation
308
- Elem = type_member(fixed: ActiveStorage::Attachment)
308
+ Elem = type_member {{fixed: ActiveStorage::Attachment}}
309
309
  end
310
310
 
311
311
  class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
312
312
  include ActiveStorage::Attachment::ActiveRelation_WhereNot
313
313
  include ActiveStorage::Attachment::CustomFinderMethods
314
314
  include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
315
- Elem = type_member(fixed: ActiveStorage::Attachment)
315
+ Elem = type_member {{fixed: ActiveStorage::Attachment}}
316
316
  end
317
317
 
318
318
  class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
319
319
  include ActiveStorage::Attachment::CustomFinderMethods
320
320
  include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
321
- Elem = type_member(fixed: ActiveStorage::Attachment)
321
+ Elem = type_member {{fixed: ActiveStorage::Attachment}}
322
322
 
323
323
  sig { params(records: T.any(ActiveStorage::Attachment, T::Array[ActiveStorage::Attachment])).returns(T.self_type) }
324
324
  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
@@ -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
@@ -335,20 +335,20 @@ class Headmaster::ActiveRecord_Relation < ActiveRecord::Relation
335
335
  include Headmaster::ActiveRelation_WhereNot
336
336
  include Headmaster::CustomFinderMethods
337
337
  include Headmaster::QueryMethodsReturningRelation
338
- Elem = type_member(fixed: Headmaster)
338
+ Elem = type_member {{fixed: Headmaster}}
339
339
  end
340
340
 
341
341
  class Headmaster::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
342
342
  include Headmaster::ActiveRelation_WhereNot
343
343
  include Headmaster::CustomFinderMethods
344
344
  include Headmaster::QueryMethodsReturningAssociationRelation
345
- Elem = type_member(fixed: Headmaster)
345
+ Elem = type_member {{fixed: Headmaster}}
346
346
  end
347
347
 
348
348
  class Headmaster::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
349
349
  include Headmaster::CustomFinderMethods
350
350
  include Headmaster::QueryMethodsReturningAssociationRelation
351
- Elem = type_member(fixed: Headmaster)
351
+ Elem = type_member {{fixed: Headmaster}}
352
352
 
353
353
  sig { params(records: T.any(Headmaster, T::Array[Headmaster])).returns(T.self_type) }
354
354
  def <<(*records); end
@@ -305,20 +305,20 @@ class ActiveRecord::InternalMetadata::ActiveRecord_Relation < ActiveRecord::Rela
305
305
  include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot
306
306
  include ActiveRecord::InternalMetadata::CustomFinderMethods
307
307
  include ActiveRecord::InternalMetadata::QueryMethodsReturningRelation
308
- Elem = type_member(fixed: ActiveRecord::InternalMetadata)
308
+ Elem = type_member {{fixed: ActiveRecord::InternalMetadata}}
309
309
  end
310
310
 
311
311
  class ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
312
312
  include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot
313
313
  include ActiveRecord::InternalMetadata::CustomFinderMethods
314
314
  include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
315
- Elem = type_member(fixed: ActiveRecord::InternalMetadata)
315
+ Elem = type_member {{fixed: ActiveRecord::InternalMetadata}}
316
316
  end
317
317
 
318
318
  class ActiveRecord::InternalMetadata::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
319
319
  include ActiveRecord::InternalMetadata::CustomFinderMethods
320
320
  include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
321
- Elem = type_member(fixed: ActiveRecord::InternalMetadata)
321
+ Elem = type_member {{fixed: ActiveRecord::InternalMetadata}}
322
322
 
323
323
  sig { params(records: T.any(ActiveRecord::InternalMetadata, T::Array[ActiveRecord::InternalMetadata])).returns(T.self_type) }
324
324
  def <<(*records); end
@@ -287,20 +287,20 @@ class Potion::ActiveRecord_Relation < ActiveRecord::Relation
287
287
  include Potion::ActiveRelation_WhereNot
288
288
  include Potion::CustomFinderMethods
289
289
  include Potion::QueryMethodsReturningRelation
290
- Elem = type_member(fixed: Potion)
290
+ Elem = type_member {{fixed: Potion}}
291
291
  end
292
292
 
293
293
  class Potion::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
294
294
  include Potion::ActiveRelation_WhereNot
295
295
  include Potion::CustomFinderMethods
296
296
  include Potion::QueryMethodsReturningAssociationRelation
297
- Elem = type_member(fixed: Potion)
297
+ Elem = type_member {{fixed: Potion}}
298
298
  end
299
299
 
300
300
  class Potion::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
301
301
  include Potion::CustomFinderMethods
302
302
  include Potion::QueryMethodsReturningAssociationRelation
303
- Elem = type_member(fixed: Potion)
303
+ Elem = type_member {{fixed: Potion}}
304
304
 
305
305
  sig { params(records: T.any(Potion, T::Array[Potion])).returns(T.self_type) }
306
306
  def <<(*records); end