sorbet-rails 0.6.3 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. checksums.yaml +4 -4
  2. data/.gitattributes +1 -2
  3. data/.gitignore +2 -1
  4. data/.travis.yml +3 -1
  5. data/README.md +54 -7
  6. data/Rakefile +3 -3
  7. data/lib/bundled_rbi/customizabel_rbi_formatter.rbi +29 -0
  8. data/lib/bundled_rbi/pluck_to_tstruct.rbi +2 -1
  9. data/lib/bundled_rbi/typed_enum.rbi +7 -0
  10. data/lib/sorbet-rails.rb +1 -3
  11. data/lib/sorbet-rails/active_record_rbi_formatter.rb +8 -2
  12. data/lib/sorbet-rails/config.rb +11 -0
  13. data/lib/sorbet-rails/deprecation.rb +1 -0
  14. data/lib/sorbet-rails/gem_plugins/active_flag_plugin.rb +0 -1
  15. data/lib/sorbet-rails/gem_plugins/kaminari_plugin.rb +8 -0
  16. data/lib/sorbet-rails/gem_plugins/paperclip_plugin.rb +0 -1
  17. data/lib/sorbet-rails/job_rbi_formatter.rb +73 -62
  18. data/lib/sorbet-rails/mailer_rbi_formatter.rb +40 -27
  19. data/lib/sorbet-rails/model_column_utils.rb +129 -0
  20. data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +37 -3
  21. data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +0 -103
  22. data/lib/sorbet-rails/model_plugins/active_record_enum.rb +0 -1
  23. data/lib/sorbet-rails/model_plugins/active_record_named_scope.rb +15 -6
  24. data/lib/sorbet-rails/model_plugins/active_record_querying.rb +34 -3
  25. data/lib/sorbet-rails/model_plugins/active_storage_methods.rb +1 -1
  26. data/lib/sorbet-rails/model_plugins/base.rb +0 -9
  27. data/lib/sorbet-rails/model_rbi_formatter.rb +4 -8
  28. data/lib/sorbet-rails/model_utils.rb +73 -32
  29. data/lib/sorbet-rails/rails_mixins/generated_url_helpers.rb +2 -3
  30. data/lib/sorbet-rails/rails_mixins/pluck_to_tstruct.rb +17 -7
  31. data/lib/sorbet-rails/railtie.rb +0 -2
  32. data/lib/sorbet-rails/sorbet_utils.rb +152 -150
  33. data/lib/sorbet-rails/tasks/rails_rbi.rake +18 -26
  34. data/sorbet-rails.gemspec +1 -1
  35. data/spec/generators/rails-template.rb +3 -6
  36. data/spec/generators/sorbet_test_cases.rb +66 -88
  37. data/spec/job_rbi_formatter_spec.rb +1 -1
  38. data/spec/pluck_to_tstruct_spec.rb +74 -1
  39. data/spec/rails_helper.rb +2 -2
  40. data/spec/rake_rails_rbi_jobs_spec.rb +20 -0
  41. data/spec/rake_rails_rbi_mailers_spec.rb +21 -0
  42. data/spec/support/v5.0/Gemfile +1 -1
  43. data/spec/support/v5.0/Gemfile.lock +9 -9
  44. data/spec/support/v5.0/app/models/spell_book.rb +2 -0
  45. data/spec/support/v5.0/app/models/wizard.rb +1 -1
  46. data/spec/support/v5.0/sorbet_test_cases.rb +66 -88
  47. data/spec/support/v5.1/Gemfile.lock +7 -7
  48. data/spec/support/v5.1/app/models/spell_book.rb +2 -0
  49. data/spec/support/v5.1/app/models/wizard.rb +1 -1
  50. data/spec/support/v5.1/sorbet_test_cases.rb +66 -88
  51. data/spec/support/v5.2/Gemfile +1 -1
  52. data/spec/support/v5.2/Gemfile.lock +9 -9
  53. data/spec/support/v5.2/app/models/spell_book.rb +2 -0
  54. data/spec/support/v5.2/app/models/wizard.rb +1 -1
  55. data/spec/support/v5.2/sorbet_test_cases.rb +66 -88
  56. data/spec/support/v6.0/.gitignore +6 -0
  57. data/spec/support/v6.0/Gemfile +3 -3
  58. data/spec/support/v6.0/Gemfile.lock +77 -76
  59. data/spec/support/v6.0/app/models/spell_book.rb +2 -0
  60. data/spec/support/v6.0/app/models/wizard.rb +1 -1
  61. data/spec/support/v6.0/bin/bundle +22 -13
  62. data/spec/support/v6.0/config/environments/test.rb +1 -1
  63. data/spec/support/v6.0/sorbet_test_cases.rb +66 -88
  64. data/spec/support/v6.0/tmp/pids/.keep +0 -0
  65. data/spec/test_data/v5.0/expected_active_record_base.rbi +2 -2
  66. data/spec/test_data/v5.0/expected_active_record_relation.rbi +2 -2
  67. data/spec/test_data/v5.0/expected_custom_application_job.rbi +21 -0
  68. data/spec/test_data/v5.0/expected_custom_application_mailer.rbi +6 -0
  69. data/spec/test_data/v5.0/expected_custom_award_house_point_hourglasses.rbi +21 -0
  70. data/spec/test_data/v5.0/expected_custom_daily_prophet_mailer.rbi +8 -0
  71. data/spec/test_data/v5.0/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
  72. data/spec/test_data/v5.0/expected_headmaster.rbi +60 -190
  73. data/spec/test_data/v5.0/expected_internal_metadata.rbi +42 -188
  74. data/spec/test_data/v5.0/expected_potion.rbi +51 -188
  75. data/spec/test_data/v5.0/expected_robe.rbi +51 -190
  76. data/spec/test_data/v5.0/expected_schema_migration.rbi +42 -188
  77. data/spec/test_data/v5.0/expected_school.rbi +51 -190
  78. data/spec/test_data/v5.0/expected_spell.rbi +42 -190
  79. data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +60 -190
  80. data/spec/test_data/v5.0/expected_spell_book.rbi +86 -215
  81. data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +60 -190
  82. data/spec/test_data/v5.0/expected_squib.rbi +131 -263
  83. data/spec/test_data/v5.0/expected_subject.rbi +42 -190
  84. data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +60 -190
  85. data/spec/test_data/v5.0/expected_wand.rbi +84 -225
  86. data/spec/test_data/v5.0/expected_wizard.rbi +131 -263
  87. data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +60 -190
  88. data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +131 -263
  89. data/spec/test_data/v5.1/expected_active_record_base.rbi +2 -2
  90. data/spec/test_data/v5.1/expected_active_record_relation.rbi +2 -2
  91. data/spec/test_data/v5.1/expected_custom_application_job.rbi +21 -0
  92. data/spec/test_data/v5.1/expected_custom_application_mailer.rbi +6 -0
  93. data/spec/test_data/v5.1/expected_custom_award_house_point_hourglasses.rbi +21 -0
  94. data/spec/test_data/v5.1/expected_custom_daily_prophet_mailer.rbi +8 -0
  95. data/spec/test_data/v5.1/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
  96. data/spec/test_data/v5.1/expected_headmaster.rbi +60 -196
  97. data/spec/test_data/v5.1/expected_internal_metadata.rbi +42 -194
  98. data/spec/test_data/v5.1/expected_potion.rbi +51 -194
  99. data/spec/test_data/v5.1/expected_robe.rbi +51 -196
  100. data/spec/test_data/v5.1/expected_schema_migration.rbi +42 -194
  101. data/spec/test_data/v5.1/expected_school.rbi +51 -196
  102. data/spec/test_data/v5.1/expected_spell.rbi +42 -196
  103. data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +60 -196
  104. data/spec/test_data/v5.1/expected_spell_book.rbi +86 -221
  105. data/spec/test_data/v5.1/expected_spell_book/habtm_spells.rbi +60 -196
  106. data/spec/test_data/v5.1/expected_squib.rbi +132 -270
  107. data/spec/test_data/v5.1/expected_subject.rbi +42 -196
  108. data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +60 -196
  109. data/spec/test_data/v5.1/expected_wand.rbi +84 -231
  110. data/spec/test_data/v5.1/expected_wizard.rbi +132 -270
  111. data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +60 -196
  112. data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +132 -270
  113. data/spec/test_data/v5.2/expected_active_record_base.rbi +2 -2
  114. data/spec/test_data/v5.2/expected_active_record_relation.rbi +2 -2
  115. data/spec/test_data/v5.2/expected_attachment.rbi +60 -194
  116. data/spec/test_data/v5.2/expected_blob.rbi +80 -214
  117. data/spec/test_data/v5.2/expected_custom_application_job.rbi +21 -0
  118. data/spec/test_data/v5.2/expected_custom_application_mailer.rbi +6 -0
  119. data/spec/test_data/v5.2/expected_custom_award_house_point_hourglasses.rbi +21 -0
  120. data/spec/test_data/v5.2/expected_custom_daily_prophet_mailer.rbi +8 -0
  121. data/spec/test_data/v5.2/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
  122. data/spec/test_data/v5.2/expected_headmaster.rbi +60 -196
  123. data/spec/test_data/v5.2/expected_internal_metadata.rbi +42 -194
  124. data/spec/test_data/v5.2/expected_potion.rbi +51 -194
  125. data/spec/test_data/v5.2/expected_robe.rbi +51 -196
  126. data/spec/test_data/v5.2/expected_schema_migration.rbi +42 -194
  127. data/spec/test_data/v5.2/expected_school.rbi +51 -196
  128. data/spec/test_data/v5.2/expected_spell.rbi +42 -196
  129. data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +60 -196
  130. data/spec/test_data/v5.2/expected_spell_book.rbi +86 -221
  131. data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +60 -196
  132. data/spec/test_data/v5.2/expected_squib.rbi +156 -276
  133. data/spec/test_data/v5.2/expected_subject.rbi +42 -196
  134. data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +60 -196
  135. data/spec/test_data/v5.2/expected_wand.rbi +84 -231
  136. data/spec/test_data/v5.2/expected_wizard.rbi +156 -276
  137. data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +60 -196
  138. data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +156 -276
  139. data/spec/test_data/v6.0/expected_active_record_base.rbi +2 -2
  140. data/spec/test_data/v6.0/expected_active_record_relation.rbi +10 -10
  141. data/spec/test_data/v6.0/expected_attachment.rbi +60 -218
  142. data/spec/test_data/v6.0/expected_blob.rbi +80 -238
  143. data/spec/test_data/v6.0/expected_custom_application_job.rbi +21 -0
  144. data/spec/test_data/v6.0/expected_custom_application_mailer.rbi +6 -0
  145. data/spec/test_data/v6.0/expected_custom_award_house_point_hourglasses.rbi +21 -0
  146. data/spec/test_data/v6.0/expected_custom_daily_prophet_mailer.rbi +8 -0
  147. data/spec/test_data/v6.0/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
  148. data/spec/test_data/v6.0/expected_headmaster.rbi +60 -220
  149. data/spec/test_data/v6.0/expected_internal_metadata.rbi +42 -218
  150. data/spec/test_data/v6.0/expected_potion.rbi +51 -218
  151. data/spec/test_data/v6.0/expected_robe.rbi +51 -220
  152. data/spec/test_data/v6.0/expected_routes.rbi +14 -7
  153. data/spec/test_data/v6.0/expected_schema_migration.rbi +42 -218
  154. data/spec/test_data/v6.0/expected_school.rbi +51 -220
  155. data/spec/test_data/v6.0/expected_spell.rbi +42 -220
  156. data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +60 -220
  157. data/spec/test_data/v6.0/expected_spell_book.rbi +98 -257
  158. data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +60 -220
  159. data/spec/test_data/v6.0/expected_squib.rbi +182 -326
  160. data/spec/test_data/v6.0/expected_subject.rbi +42 -220
  161. data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +60 -220
  162. data/spec/test_data/v6.0/expected_wand.rbi +100 -271
  163. data/spec/test_data/v6.0/expected_wizard.rbi +182 -326
  164. data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +60 -220
  165. data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +182 -326
  166. metadata +46 -11
  167. data/lib/bundled_rbi/parameters.rbi +0 -28
  168. data/lib/sorbet-rails/custom_types/boolean_string.rb +0 -42
  169. data/lib/sorbet-rails/custom_types/integer_string.rb +0 -45
  170. data/lib/sorbet-rails/rails_mixins/custom_params_methods.rb +0 -57
  171. data/spec/boolean_string_spec.rb +0 -59
  172. data/spec/custom_params_methods_spec.rb +0 -138
  173. data/spec/integer_string_spec.rb +0 -46
@@ -3,8 +3,6 @@
3
3
 
4
4
  # typed: strong
5
5
  module SpellBook::EnumInstanceMethods
6
- extend T::Sig
7
-
8
6
  sig { returns(T::Boolean) }
9
7
  def unclassified?; end
10
8
 
@@ -30,8 +28,6 @@ module SpellBook::ActiveRelation_WhereNot
30
28
  end
31
29
 
32
30
  module SpellBook::GeneratedAttributeMethods
33
- extend T::Sig
34
-
35
31
  sig { returns(String) }
36
32
  def book_type; end
37
33
 
@@ -79,8 +75,6 @@ class SpellBook::BookType < T::Enum
79
75
  end
80
76
 
81
77
  module SpellBook::GeneratedAssociationMethods
82
- extend T::Sig
83
-
84
78
  sig { returns(::Spell::ActiveRecord_Associations_CollectionProxy) }
85
79
  def spells; end
86
80
 
@@ -93,6 +87,15 @@ module SpellBook::GeneratedAssociationMethods
93
87
  sig { returns(::Wizard) }
94
88
  def wizard; end
95
89
 
90
+ sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
91
+ def build_wizard(*args, &block); end
92
+
93
+ sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
94
+ def create_wizard(*args, &block); end
95
+
96
+ sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
97
+ def create_wizard!(*args, &block); end
98
+
96
99
  sig { params(value: ::Wizard).void }
97
100
  def wizard=(value); end
98
101
  end
@@ -119,8 +122,7 @@ class SpellBook < ApplicationRecord
119
122
  include SpellBook::GeneratedAttributeMethods
120
123
  include SpellBook::GeneratedAssociationMethods
121
124
  extend SpellBook::CustomFinderMethods
122
- extend T::Sig
123
- extend T::Generic
125
+ extend SpellBook::QueryMethodsReturningRelation
124
126
  RelationType = T.type_alias { T.any(SpellBook::ActiveRecord_Relation, SpellBook::ActiveRecord_Associations_CollectionProxy, SpellBook::ActiveRecord_AssociationRelation) }
125
127
 
126
128
  sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
@@ -133,115 +135,87 @@ class SpellBook < ApplicationRecord
133
135
  def self.dark_art(*args); end
134
136
 
135
137
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
136
- def self.unclassified(*args); end
137
-
138
- sig { returns(SpellBook::ActiveRecord_Relation) }
139
- def self.all; end
140
-
141
- sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
142
- def self.unscoped(&block); end
143
-
144
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
145
- def self.select(*args); end
146
-
147
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
148
- def self.order(*args); end
149
-
150
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
151
- def self.reorder(*args); end
152
-
153
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
154
- def self.group(*args); end
155
-
156
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
157
- def self.limit(*args); end
158
-
159
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
160
- def self.offset(*args); end
161
-
162
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
163
- def self.joins(*args); end
164
-
165
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
166
- def self.left_joins(*args); end
167
-
168
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
169
- def self.left_outer_joins(*args); end
170
-
171
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
172
- def self.where(*args); end
173
-
174
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
175
- def self.rewhere(*args); end
176
-
177
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
178
- def self.preload(*args); end
138
+ def self.recent(*args); end
179
139
 
180
140
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
181
- def self.eager_load(*args); end
182
-
183
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
184
- def self.includes(*args); end
185
-
186
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
187
- def self.from(*args); end
188
-
189
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
190
- def self.lock(*args); end
141
+ def self.unclassified(*args); end
191
142
 
192
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
193
- def self.readonly(*args); end
143
+ sig { returns(SpellBook::BookType) }
144
+ def typed_book_type; end
194
145
 
195
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
196
- def self.or(*args); end
146
+ sig { params(value: SpellBook::BookType).void }
147
+ def typed_book_type=(value); end
148
+ end
197
149
 
198
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
199
- def self.having(*args); end
150
+ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
151
+ include SpellBook::ActiveRelation_WhereNot
152
+ include SpellBook::CustomFinderMethods
153
+ include SpellBook::QueryMethodsReturningRelation
154
+ Elem = type_member(fixed: SpellBook)
200
155
 
201
156
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
202
- def self.create_with(*args); end
157
+ def biology(*args); end
203
158
 
204
159
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
205
- def self.distinct(*args); end
160
+ def dark_art(*args); end
206
161
 
207
162
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
208
- def self.references(*args); end
163
+ def recent(*args); end
209
164
 
210
165
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
211
- def self.none(*args); end
166
+ def unclassified(*args); end
167
+ end
212
168
 
213
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
214
- def self.unscope(*args); end
169
+ class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
170
+ include SpellBook::ActiveRelation_WhereNot
171
+ include SpellBook::CustomFinderMethods
172
+ include SpellBook::QueryMethodsReturningAssociationRelation
173
+ Elem = type_member(fixed: SpellBook)
215
174
 
216
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
217
- def self.except(*args); end
175
+ sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
176
+ def biology(*args); end
218
177
 
219
- sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
220
- def self.extending(*args, &block); end
178
+ sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
179
+ def dark_art(*args); end
221
180
 
222
- sig { returns(SpellBook::BookType) }
223
- def typed_book_type; end
181
+ sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
182
+ def recent(*args); end
224
183
 
225
- sig { params(value: SpellBook::BookType).void }
226
- def typed_book_type=(value); end
184
+ sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
185
+ def unclassified(*args); end
227
186
  end
228
187
 
229
- class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
230
- include SpellBook::ActiveRelation_WhereNot
188
+ class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
231
189
  include SpellBook::CustomFinderMethods
232
- extend T::Sig
233
- extend T::Generic
190
+ include SpellBook::QueryMethodsReturningAssociationRelation
234
191
  Elem = type_member(fixed: SpellBook)
235
192
 
236
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
193
+ sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
237
194
  def biology(*args); end
238
195
 
239
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
196
+ sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
240
197
  def dark_art(*args); end
241
198
 
242
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
199
+ sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
200
+ def recent(*args); end
201
+
202
+ sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
243
203
  def unclassified(*args); end
244
204
 
205
+ sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
206
+ def <<(*records); end
207
+
208
+ sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
209
+ def append(*records); end
210
+
211
+ sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
212
+ def push(*records); end
213
+
214
+ sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
215
+ def concat(*records); end
216
+ end
217
+
218
+ module SpellBook::QueryMethodsReturningRelation
245
219
  sig { returns(SpellBook::ActiveRecord_Relation) }
246
220
  def all; end
247
221
 
@@ -325,128 +299,25 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
325
299
 
326
300
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
327
301
  def extending(*args, &block); end
328
- end
329
-
330
- class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
331
- include SpellBook::ActiveRelation_WhereNot
332
- include SpellBook::CustomFinderMethods
333
- extend T::Sig
334
- extend T::Generic
335
- Elem = type_member(fixed: SpellBook)
336
-
337
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
338
- def biology(*args); end
339
-
340
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
341
- def dark_art(*args); end
342
302
 
343
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
344
- def unclassified(*args); end
345
-
346
- sig { returns(SpellBook::ActiveRecord_AssociationRelation) }
347
- def all; end
348
-
349
- sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
350
- def unscoped(&block); end
351
-
352
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
353
- def select(*args); end
354
-
355
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
356
- def order(*args); end
357
-
358
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
359
- def reorder(*args); end
360
-
361
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
362
- def group(*args); end
363
-
364
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
365
- def limit(*args); end
366
-
367
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
368
- def offset(*args); end
369
-
370
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
371
- def joins(*args); end
372
-
373
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
374
- def left_joins(*args); end
375
-
376
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
377
- def left_outer_joins(*args); end
378
-
379
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
380
- def where(*args); end
381
-
382
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
383
- def rewhere(*args); end
384
-
385
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
386
- def preload(*args); end
387
-
388
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
389
- def eager_load(*args); end
390
-
391
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
392
- def includes(*args); end
393
-
394
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
395
- def from(*args); end
396
-
397
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
398
- def lock(*args); end
399
-
400
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
401
- def readonly(*args); end
402
-
403
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
404
- def or(*args); end
405
-
406
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
407
- def having(*args); end
408
-
409
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
410
- def create_with(*args); end
411
-
412
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
413
- def distinct(*args); end
414
-
415
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
416
- def references(*args); end
417
-
418
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
419
- def none(*args); end
420
-
421
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
422
- def unscope(*args); end
423
-
424
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
425
- def except(*args); end
426
-
427
- sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
428
- def extending(*args, &block); end
303
+ sig do
304
+ params(
305
+ of: T.nilable(Integer),
306
+ start: T.nilable(Integer),
307
+ finish: T.nilable(Integer),
308
+ load: T.nilable(T::Boolean),
309
+ error_on_ignore: T.nilable(T::Boolean),
310
+ block: T.nilable(T.proc.params(e: SpellBook::ActiveRecord_Relation).void)
311
+ ).returns(ActiveRecord::Batches::BatchEnumerator)
312
+ end
313
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
429
314
  end
430
315
 
431
- class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
432
- include SpellBook::CustomFinderMethods
433
- extend T::Sig
434
- extend T::Generic
435
- Elem = type_member(fixed: SpellBook)
436
-
437
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
438
- def biology(*args); end
439
-
440
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
441
- def dark_art(*args); end
442
-
443
- sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
444
- def unclassified(*args); end
445
-
316
+ module SpellBook::QueryMethodsReturningAssociationRelation
446
317
  sig { returns(SpellBook::ActiveRecord_AssociationRelation) }
447
318
  def all; end
448
319
 
449
- sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
320
+ sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
450
321
  def unscoped(&block); end
451
322
 
452
323
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
@@ -527,15 +398,15 @@ class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Assoc
527
398
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
528
399
  def extending(*args, &block); end
529
400
 
530
- sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
531
- def <<(*records); end
532
-
533
- sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
534
- def append(*records); end
535
-
536
- sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
537
- def push(*records); end
538
-
539
- sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
540
- def concat(*records); end
401
+ sig do
402
+ params(
403
+ of: T.nilable(Integer),
404
+ start: T.nilable(Integer),
405
+ finish: T.nilable(Integer),
406
+ load: T.nilable(T::Boolean),
407
+ error_on_ignore: T.nilable(T::Boolean),
408
+ block: T.nilable(T.proc.params(e: SpellBook::ActiveRecord_AssociationRelation).void)
409
+ ).returns(ActiveRecord::Batches::BatchEnumerator)
410
+ end
411
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
541
412
  end
@@ -8,8 +8,6 @@ module SpellBook::HABTM_Spells::ActiveRelation_WhereNot
8
8
  end
9
9
 
10
10
  module SpellBook::HABTM_Spells::GeneratedAttributeMethods
11
- extend T::Sig
12
-
13
11
  sig { returns(Integer) }
14
12
  def spell_book_id; end
15
13
 
@@ -30,17 +28,33 @@ module SpellBook::HABTM_Spells::GeneratedAttributeMethods
30
28
  end
31
29
 
32
30
  module SpellBook::HABTM_Spells::GeneratedAssociationMethods
33
- extend T::Sig
34
-
35
31
  sig { returns(T.nilable(::SpellBook)) }
36
32
  def left_side; end
37
33
 
34
+ sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
35
+ def build_left_side(*args, &block); end
36
+
37
+ sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
38
+ def create_left_side(*args, &block); end
39
+
40
+ sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
41
+ def create_left_side!(*args, &block); end
42
+
38
43
  sig { params(value: T.nilable(::SpellBook)).void }
39
44
  def left_side=(value); end
40
45
 
41
46
  sig { returns(::Spell) }
42
47
  def spell; end
43
48
 
49
+ sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
50
+ def build_spell(*args, &block); end
51
+
52
+ sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
53
+ def create_spell(*args, &block); end
54
+
55
+ sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
56
+ def create_spell!(*args, &block); end
57
+
44
58
  sig { params(value: ::Spell).void }
45
59
  def spell=(value); end
46
60
  end
@@ -66,102 +80,11 @@ class SpellBook::HABTM_Spells < ActiveRecord::Base
66
80
  include SpellBook::HABTM_Spells::GeneratedAttributeMethods
67
81
  include SpellBook::HABTM_Spells::GeneratedAssociationMethods
68
82
  extend SpellBook::HABTM_Spells::CustomFinderMethods
69
- extend T::Sig
70
- extend T::Generic
83
+ extend SpellBook::HABTM_Spells::QueryMethodsReturningRelation
71
84
  RelationType = T.type_alias { T.any(SpellBook::HABTM_Spells::ActiveRecord_Relation, SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy, SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
72
-
73
- sig { returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
74
- def self.all; end
75
-
76
- sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
77
- def self.unscoped(&block); end
78
-
79
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
80
- def self.select(*args); end
81
-
82
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
83
- def self.order(*args); end
84
-
85
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
86
- def self.reorder(*args); end
87
-
88
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
89
- def self.group(*args); end
90
-
91
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
92
- def self.limit(*args); end
93
-
94
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
95
- def self.offset(*args); end
96
-
97
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
98
- def self.joins(*args); end
99
-
100
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
101
- def self.left_joins(*args); end
102
-
103
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
104
- def self.left_outer_joins(*args); end
105
-
106
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
107
- def self.where(*args); end
108
-
109
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
110
- def self.rewhere(*args); end
111
-
112
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
113
- def self.preload(*args); end
114
-
115
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
116
- def self.eager_load(*args); end
117
-
118
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
119
- def self.includes(*args); end
120
-
121
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
122
- def self.from(*args); end
123
-
124
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
125
- def self.lock(*args); end
126
-
127
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
128
- def self.readonly(*args); end
129
-
130
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
131
- def self.or(*args); end
132
-
133
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
134
- def self.having(*args); end
135
-
136
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
137
- def self.create_with(*args); end
138
-
139
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
140
- def self.distinct(*args); end
141
-
142
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
143
- def self.references(*args); end
144
-
145
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
146
- def self.none(*args); end
147
-
148
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
149
- def self.unscope(*args); end
150
-
151
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
152
- def self.except(*args); end
153
-
154
- sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
155
- def self.extending(*args, &block); end
156
85
  end
157
86
 
158
- class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
159
- include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
160
- include SpellBook::HABTM_Spells::CustomFinderMethods
161
- extend T::Sig
162
- extend T::Generic
163
- Elem = type_member(fixed: SpellBook::HABTM_Spells)
164
-
87
+ module SpellBook::HABTM_Spells::QueryMethodsReturningRelation
165
88
  sig { returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
166
89
  def all; end
167
90
 
@@ -245,19 +168,25 @@ class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
245
168
 
246
169
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
247
170
  def extending(*args, &block); end
248
- end
249
171
 
250
- class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
251
- include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
252
- include SpellBook::HABTM_Spells::CustomFinderMethods
253
- extend T::Sig
254
- extend T::Generic
255
- Elem = type_member(fixed: SpellBook::HABTM_Spells)
172
+ sig do
173
+ params(
174
+ of: T.nilable(Integer),
175
+ start: T.nilable(Integer),
176
+ finish: T.nilable(Integer),
177
+ load: T.nilable(T::Boolean),
178
+ error_on_ignore: T.nilable(T::Boolean),
179
+ block: T.nilable(T.proc.params(e: SpellBook::HABTM_Spells::ActiveRecord_Relation).void)
180
+ ).returns(ActiveRecord::Batches::BatchEnumerator)
181
+ end
182
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
183
+ end
256
184
 
185
+ module SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
257
186
  sig { returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
258
187
  def all; end
259
188
 
260
- sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
189
+ sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
261
190
  def unscoped(&block); end
262
191
 
263
192
  sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
@@ -337,97 +266,38 @@ class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::
337
266
 
338
267
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
339
268
  def extending(*args, &block); end
269
+
270
+ sig do
271
+ params(
272
+ of: T.nilable(Integer),
273
+ start: T.nilable(Integer),
274
+ finish: T.nilable(Integer),
275
+ load: T.nilable(T::Boolean),
276
+ error_on_ignore: T.nilable(T::Boolean),
277
+ block: T.nilable(T.proc.params(e: SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation).void)
278
+ ).returns(ActiveRecord::Batches::BatchEnumerator)
279
+ end
280
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
340
281
  end
341
282
 
342
- class SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
283
+ class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
284
+ include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
343
285
  include SpellBook::HABTM_Spells::CustomFinderMethods
344
- extend T::Sig
345
- extend T::Generic
286
+ include SpellBook::HABTM_Spells::QueryMethodsReturningRelation
346
287
  Elem = type_member(fixed: SpellBook::HABTM_Spells)
288
+ end
347
289
 
348
- sig { returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
349
- def all; end
350
-
351
- sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
352
- def unscoped(&block); end
353
-
354
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
355
- def select(*args); end
356
-
357
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
358
- def order(*args); end
359
-
360
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
361
- def reorder(*args); end
362
-
363
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
364
- def group(*args); end
365
-
366
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
367
- def limit(*args); end
368
-
369
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
370
- def offset(*args); end
371
-
372
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
373
- def joins(*args); end
374
-
375
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
376
- def left_joins(*args); end
377
-
378
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
379
- def left_outer_joins(*args); end
380
-
381
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
382
- def where(*args); end
383
-
384
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
385
- def rewhere(*args); end
386
-
387
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
388
- def preload(*args); end
389
-
390
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
391
- def eager_load(*args); end
392
-
393
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
394
- def includes(*args); end
395
-
396
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
397
- def from(*args); end
398
-
399
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
400
- def lock(*args); end
401
-
402
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
403
- def readonly(*args); end
404
-
405
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
406
- def or(*args); end
407
-
408
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
409
- def having(*args); end
410
-
411
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
412
- def create_with(*args); end
413
-
414
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
415
- def distinct(*args); end
416
-
417
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
418
- def references(*args); end
419
-
420
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
421
- def none(*args); end
422
-
423
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
424
- def unscope(*args); end
425
-
426
- sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
427
- def except(*args); end
290
+ class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
291
+ include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
292
+ include SpellBook::HABTM_Spells::CustomFinderMethods
293
+ include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
294
+ Elem = type_member(fixed: SpellBook::HABTM_Spells)
295
+ end
428
296
 
429
- sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
430
- def extending(*args, &block); end
297
+ class SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
298
+ include SpellBook::HABTM_Spells::CustomFinderMethods
299
+ include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
300
+ Elem = type_member(fixed: SpellBook::HABTM_Spells)
431
301
 
432
302
  sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
433
303
  def <<(*records); end