sorbet-rails 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/sorbet-rails/gem_plugins/active_flag_plugin.rb +0 -1
- data/lib/sorbet-rails/gem_plugins/paperclip_plugin.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +9 -2
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_enum.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_named_scope.rb +15 -6
- data/lib/sorbet-rails/model_plugins/active_record_querying.rb +5 -1
- data/lib/sorbet-rails/model_plugins/base.rb +2 -1
- data/lib/sorbet-rails/model_rbi_formatter.rb +4 -8
- data/lib/sorbet-rails/model_utils.rb +68 -30
- data/lib/sorbet-rails/tasks/rails_rbi.rake +13 -21
- data/sorbet-rails.gemspec +1 -1
- data/spec/generators/rails-template.rb +3 -6
- data/spec/generators/sorbet_test_cases.rb +41 -26
- data/spec/support/v5.0/Gemfile.lock +2 -2
- data/spec/support/v5.0/app/models/spell_book.rb +2 -0
- data/spec/support/v5.0/app/models/wizard.rb +1 -1
- data/spec/support/v5.0/sorbet_test_cases.rb +41 -26
- data/spec/support/v5.1/Gemfile.lock +2 -2
- data/spec/support/v5.1/app/models/spell_book.rb +2 -0
- data/spec/support/v5.1/app/models/wizard.rb +1 -1
- data/spec/support/v5.1/sorbet_test_cases.rb +41 -26
- data/spec/support/v5.2/Gemfile.lock +2 -2
- data/spec/support/v5.2/app/models/spell_book.rb +2 -0
- data/spec/support/v5.2/app/models/wizard.rb +1 -1
- data/spec/support/v5.2/sorbet_test_cases.rb +41 -26
- data/spec/support/v6.0/Gemfile.lock +2 -2
- data/spec/support/v6.0/app/models/spell_book.rb +2 -0
- data/spec/support/v6.0/app/models/wizard.rb +1 -1
- data/spec/support/v6.0/sorbet_test_cases.rb +41 -26
- data/spec/test_data/v5.0/expected_headmaster.rbi +18 -190
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +18 -188
- data/spec/test_data/v5.0/expected_potion.rbi +18 -188
- data/spec/test_data/v5.0/expected_robe.rbi +18 -190
- data/spec/test_data/v5.0/expected_schema_migration.rbi +18 -188
- data/spec/test_data/v5.0/expected_school.rbi +18 -190
- data/spec/test_data/v5.0/expected_spell.rbi +18 -190
- data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +18 -190
- data/spec/test_data/v5.0/expected_spell_book.rbi +55 -217
- data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +18 -190
- data/spec/test_data/v5.0/expected_squib.rbi +90 -264
- data/spec/test_data/v5.0/expected_subject.rbi +18 -190
- data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +18 -190
- data/spec/test_data/v5.0/expected_wand.rbi +53 -227
- data/spec/test_data/v5.0/expected_wizard.rbi +90 -264
- data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +18 -190
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +90 -264
- data/spec/test_data/v5.1/expected_headmaster.rbi +18 -196
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +18 -194
- data/spec/test_data/v5.1/expected_potion.rbi +18 -194
- data/spec/test_data/v5.1/expected_robe.rbi +18 -196
- data/spec/test_data/v5.1/expected_schema_migration.rbi +18 -194
- data/spec/test_data/v5.1/expected_school.rbi +18 -196
- data/spec/test_data/v5.1/expected_spell.rbi +18 -196
- data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +18 -196
- data/spec/test_data/v5.1/expected_spell_book.rbi +55 -223
- data/spec/test_data/v5.1/expected_spell_book/habtm_spells.rbi +18 -196
- data/spec/test_data/v5.1/expected_squib.rbi +91 -271
- data/spec/test_data/v5.1/expected_subject.rbi +18 -196
- data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +18 -196
- data/spec/test_data/v5.1/expected_wand.rbi +53 -233
- data/spec/test_data/v5.1/expected_wizard.rbi +91 -271
- data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +18 -196
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +91 -271
- data/spec/test_data/v5.2/expected_attachment.rbi +18 -194
- data/spec/test_data/v5.2/expected_blob.rbi +39 -215
- data/spec/test_data/v5.2/expected_headmaster.rbi +18 -196
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +18 -194
- data/spec/test_data/v5.2/expected_potion.rbi +18 -194
- data/spec/test_data/v5.2/expected_robe.rbi +18 -196
- data/spec/test_data/v5.2/expected_schema_migration.rbi +18 -194
- data/spec/test_data/v5.2/expected_school.rbi +18 -196
- data/spec/test_data/v5.2/expected_spell.rbi +18 -196
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +18 -196
- data/spec/test_data/v5.2/expected_spell_book.rbi +55 -223
- data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +18 -196
- data/spec/test_data/v5.2/expected_squib.rbi +95 -275
- data/spec/test_data/v5.2/expected_subject.rbi +18 -196
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +18 -196
- data/spec/test_data/v5.2/expected_wand.rbi +53 -233
- data/spec/test_data/v5.2/expected_wizard.rbi +95 -275
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +18 -196
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +95 -275
- data/spec/test_data/v6.0/expected_attachment.rbi +18 -218
- data/spec/test_data/v6.0/expected_blob.rbi +31 -243
- data/spec/test_data/v6.0/expected_headmaster.rbi +18 -220
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +18 -218
- data/spec/test_data/v6.0/expected_potion.rbi +18 -218
- data/spec/test_data/v6.0/expected_robe.rbi +18 -220
- data/spec/test_data/v6.0/expected_schema_migration.rbi +18 -218
- data/spec/test_data/v6.0/expected_school.rbi +18 -220
- data/spec/test_data/v6.0/expected_spell.rbi +18 -220
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +18 -220
- data/spec/test_data/v6.0/expected_spell_book.rbi +24 -258
- data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +18 -220
- data/spec/test_data/v6.0/expected_squib.rbi +31 -457
- data/spec/test_data/v6.0/expected_subject.rbi +18 -220
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +18 -220
- data/spec/test_data/v6.0/expected_wand.rbi +18 -270
- data/spec/test_data/v6.0/expected_wizard.rbi +31 -457
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +18 -220
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +31 -457
- metadata +1 -1
@@ -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
|
|
@@ -119,8 +113,7 @@ class SpellBook < ApplicationRecord
|
|
119
113
|
include SpellBook::GeneratedAttributeMethods
|
120
114
|
include SpellBook::GeneratedAssociationMethods
|
121
115
|
extend SpellBook::CustomFinderMethods
|
122
|
-
extend
|
123
|
-
extend T::Generic
|
116
|
+
extend SpellBook::QueryMethodsReturningRelation
|
124
117
|
RelationType = T.type_alias { T.any(SpellBook::ActiveRecord_Relation, SpellBook::ActiveRecord_Associations_CollectionProxy, SpellBook::ActiveRecord_AssociationRelation) }
|
125
118
|
|
126
119
|
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
@@ -133,115 +126,87 @@ class SpellBook < ApplicationRecord
|
|
133
126
|
def self.dark_art(*args); end
|
134
127
|
|
135
128
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
136
|
-
def self.
|
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
|
129
|
+
def self.recent(*args); end
|
173
130
|
|
174
131
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
175
|
-
def self.
|
176
|
-
|
177
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
178
|
-
def self.preload(*args); end
|
179
|
-
|
180
|
-
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
|
132
|
+
def self.unclassified(*args); end
|
191
133
|
|
192
|
-
sig {
|
193
|
-
def
|
134
|
+
sig { returns(SpellBook::BookType) }
|
135
|
+
def typed_book_type; end
|
194
136
|
|
195
|
-
sig { params(
|
196
|
-
def
|
137
|
+
sig { params(value: SpellBook::BookType).void }
|
138
|
+
def typed_book_type=(value); end
|
139
|
+
end
|
197
140
|
|
198
|
-
|
199
|
-
|
141
|
+
class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
|
142
|
+
include SpellBook::ActiveRelation_WhereNot
|
143
|
+
include SpellBook::CustomFinderMethods
|
144
|
+
include SpellBook::QueryMethodsReturningRelation
|
145
|
+
Elem = type_member(fixed: SpellBook)
|
200
146
|
|
201
147
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
202
|
-
def
|
148
|
+
def biology(*args); end
|
203
149
|
|
204
150
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
205
|
-
def
|
151
|
+
def dark_art(*args); end
|
206
152
|
|
207
153
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
208
|
-
def
|
154
|
+
def recent(*args); end
|
209
155
|
|
210
156
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
211
|
-
def
|
157
|
+
def unclassified(*args); end
|
158
|
+
end
|
212
159
|
|
213
|
-
|
214
|
-
|
160
|
+
class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
161
|
+
include SpellBook::ActiveRelation_WhereNot
|
162
|
+
include SpellBook::CustomFinderMethods
|
163
|
+
include SpellBook::QueryMethodsReturningAssociationRelation
|
164
|
+
Elem = type_member(fixed: SpellBook)
|
215
165
|
|
216
|
-
sig { params(args: T.untyped).returns(SpellBook::
|
217
|
-
def
|
166
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
167
|
+
def biology(*args); end
|
218
168
|
|
219
|
-
sig { params(args: T.untyped
|
220
|
-
def
|
169
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
170
|
+
def dark_art(*args); end
|
221
171
|
|
222
|
-
sig { returns(SpellBook::
|
223
|
-
def
|
172
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
173
|
+
def recent(*args); end
|
224
174
|
|
225
|
-
sig { params(
|
226
|
-
def
|
175
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
176
|
+
def unclassified(*args); end
|
227
177
|
end
|
228
178
|
|
229
|
-
class SpellBook::
|
230
|
-
include SpellBook::ActiveRelation_WhereNot
|
179
|
+
class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
231
180
|
include SpellBook::CustomFinderMethods
|
232
|
-
|
233
|
-
extend T::Generic
|
181
|
+
include SpellBook::QueryMethodsReturningAssociationRelation
|
234
182
|
Elem = type_member(fixed: SpellBook)
|
235
183
|
|
236
|
-
sig { params(args: T.untyped).returns(SpellBook::
|
184
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
237
185
|
def biology(*args); end
|
238
186
|
|
239
|
-
sig { params(args: T.untyped).returns(SpellBook::
|
187
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
240
188
|
def dark_art(*args); end
|
241
189
|
|
242
|
-
sig { params(args: T.untyped).returns(SpellBook::
|
190
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
191
|
+
def recent(*args); end
|
192
|
+
|
193
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
243
194
|
def unclassified(*args); end
|
244
195
|
|
196
|
+
sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
|
197
|
+
def <<(*records); end
|
198
|
+
|
199
|
+
sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
|
200
|
+
def append(*records); end
|
201
|
+
|
202
|
+
sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
|
203
|
+
def push(*records); end
|
204
|
+
|
205
|
+
sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
|
206
|
+
def concat(*records); end
|
207
|
+
end
|
208
|
+
|
209
|
+
module SpellBook::QueryMethodsReturningRelation
|
245
210
|
sig { returns(SpellBook::ActiveRecord_Relation) }
|
246
211
|
def all; end
|
247
212
|
|
@@ -327,126 +292,11 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
|
|
327
292
|
def extending(*args, &block); end
|
328
293
|
end
|
329
294
|
|
330
|
-
|
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
|
-
|
343
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
344
|
-
def unclassified(*args); end
|
345
|
-
|
295
|
+
module SpellBook::QueryMethodsReturningAssociationRelation
|
346
296
|
sig { returns(SpellBook::ActiveRecord_AssociationRelation) }
|
347
297
|
def all; end
|
348
298
|
|
349
|
-
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::
|
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
|
429
|
-
end
|
430
|
-
|
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
|
-
|
446
|
-
sig { returns(SpellBook::ActiveRecord_AssociationRelation) }
|
447
|
-
def all; end
|
448
|
-
|
449
|
-
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
299
|
+
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
|
450
300
|
def unscoped(&block); end
|
451
301
|
|
452
302
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
@@ -526,16 +376,4 @@ class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Assoc
|
|
526
376
|
|
527
377
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
528
378
|
def extending(*args, &block); end
|
529
|
-
|
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
|
541
379
|
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,8 +28,6 @@ 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
|
|
@@ -66,102 +62,11 @@ class SpellBook::HABTM_Spells < ActiveRecord::Base
|
|
66
62
|
include SpellBook::HABTM_Spells::GeneratedAttributeMethods
|
67
63
|
include SpellBook::HABTM_Spells::GeneratedAssociationMethods
|
68
64
|
extend SpellBook::HABTM_Spells::CustomFinderMethods
|
69
|
-
extend
|
70
|
-
extend T::Generic
|
65
|
+
extend SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
71
66
|
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
67
|
end
|
157
68
|
|
158
|
-
|
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
|
-
|
69
|
+
module SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
165
70
|
sig { returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
166
71
|
def all; end
|
167
72
|
|
@@ -247,17 +152,11 @@ class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
|
|
247
152
|
def extending(*args, &block); end
|
248
153
|
end
|
249
154
|
|
250
|
-
|
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)
|
256
|
-
|
155
|
+
module SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
257
156
|
sig { returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
258
157
|
def all; end
|
259
158
|
|
260
|
-
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::
|
159
|
+
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
261
160
|
def unscoped(&block); end
|
262
161
|
|
263
162
|
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
@@ -339,95 +238,24 @@ class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::
|
|
339
238
|
def extending(*args, &block); end
|
340
239
|
end
|
341
240
|
|
342
|
-
class SpellBook::HABTM_Spells::
|
241
|
+
class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
|
242
|
+
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
343
243
|
include SpellBook::HABTM_Spells::CustomFinderMethods
|
344
|
-
|
345
|
-
extend T::Generic
|
244
|
+
include SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
346
245
|
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
246
|
+
end
|
347
247
|
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
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
|
248
|
+
class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
249
|
+
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
250
|
+
include SpellBook::HABTM_Spells::CustomFinderMethods
|
251
|
+
include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
252
|
+
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
253
|
+
end
|
428
254
|
|
429
|
-
|
430
|
-
|
255
|
+
class SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
256
|
+
include SpellBook::HABTM_Spells::CustomFinderMethods
|
257
|
+
include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
258
|
+
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
431
259
|
|
432
260
|
sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
|
433
261
|
def <<(*records); end
|