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,118 +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
|
129
|
+
def self.recent(*args); end
|
143
130
|
|
144
131
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
145
|
-
def self.
|
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
|
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
|
191
|
-
|
192
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
193
|
-
def self.readonly(*args); end
|
132
|
+
def self.unclassified(*args); end
|
194
133
|
|
195
|
-
sig {
|
196
|
-
def
|
134
|
+
sig { returns(SpellBook::BookType) }
|
135
|
+
def typed_book_type; end
|
197
136
|
|
198
|
-
sig { params(
|
199
|
-
def
|
137
|
+
sig { params(value: SpellBook::BookType).void }
|
138
|
+
def typed_book_type=(value); end
|
139
|
+
end
|
200
140
|
|
201
|
-
|
202
|
-
|
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)
|
203
146
|
|
204
147
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
205
|
-
def
|
148
|
+
def biology(*args); end
|
206
149
|
|
207
150
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
208
|
-
def
|
151
|
+
def dark_art(*args); end
|
209
152
|
|
210
153
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
211
|
-
def
|
154
|
+
def recent(*args); end
|
212
155
|
|
213
156
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
214
|
-
def
|
157
|
+
def unclassified(*args); end
|
158
|
+
end
|
215
159
|
|
216
|
-
|
217
|
-
|
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)
|
218
165
|
|
219
|
-
sig { params(args: T.untyped).returns(SpellBook::
|
220
|
-
def
|
166
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
167
|
+
def biology(*args); end
|
221
168
|
|
222
|
-
sig { params(args: T.untyped
|
223
|
-
def
|
169
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
170
|
+
def dark_art(*args); end
|
224
171
|
|
225
|
-
sig { returns(SpellBook::
|
226
|
-
def
|
172
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
173
|
+
def recent(*args); end
|
227
174
|
|
228
|
-
sig { params(
|
229
|
-
def
|
175
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
176
|
+
def unclassified(*args); end
|
230
177
|
end
|
231
178
|
|
232
|
-
class SpellBook::
|
233
|
-
include SpellBook::ActiveRelation_WhereNot
|
179
|
+
class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
234
180
|
include SpellBook::CustomFinderMethods
|
235
|
-
|
236
|
-
extend T::Generic
|
181
|
+
include SpellBook::QueryMethodsReturningAssociationRelation
|
237
182
|
Elem = type_member(fixed: SpellBook)
|
238
183
|
|
239
|
-
sig { params(args: T.untyped).returns(SpellBook::
|
184
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
240
185
|
def biology(*args); end
|
241
186
|
|
242
|
-
sig { params(args: T.untyped).returns(SpellBook::
|
187
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
243
188
|
def dark_art(*args); end
|
244
189
|
|
245
|
-
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) }
|
246
194
|
def unclassified(*args); end
|
247
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
|
248
210
|
sig { returns(SpellBook::ActiveRecord_Relation) }
|
249
211
|
def all; end
|
250
212
|
|
@@ -333,129 +295,11 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
|
|
333
295
|
def extending(*args, &block); end
|
334
296
|
end
|
335
297
|
|
336
|
-
|
337
|
-
include SpellBook::ActiveRelation_WhereNot
|
338
|
-
include SpellBook::CustomFinderMethods
|
339
|
-
extend T::Sig
|
340
|
-
extend T::Generic
|
341
|
-
Elem = type_member(fixed: SpellBook)
|
342
|
-
|
343
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
344
|
-
def biology(*args); end
|
345
|
-
|
346
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
347
|
-
def dark_art(*args); end
|
348
|
-
|
349
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
350
|
-
def unclassified(*args); end
|
351
|
-
|
352
|
-
sig { returns(SpellBook::ActiveRecord_AssociationRelation) }
|
353
|
-
def all; end
|
354
|
-
|
355
|
-
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
356
|
-
def unscoped(&block); end
|
357
|
-
|
358
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
359
|
-
def select(*args); end
|
360
|
-
|
361
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
362
|
-
def order(*args); end
|
363
|
-
|
364
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
365
|
-
def reorder(*args); end
|
366
|
-
|
367
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
368
|
-
def group(*args); end
|
369
|
-
|
370
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
371
|
-
def limit(*args); end
|
372
|
-
|
373
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
374
|
-
def offset(*args); end
|
375
|
-
|
376
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
377
|
-
def joins(*args); end
|
378
|
-
|
379
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
380
|
-
def left_joins(*args); end
|
381
|
-
|
382
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
383
|
-
def left_outer_joins(*args); end
|
384
|
-
|
385
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
386
|
-
def where(*args); end
|
387
|
-
|
388
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
389
|
-
def rewhere(*args); end
|
390
|
-
|
391
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
392
|
-
def preload(*args); end
|
393
|
-
|
394
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
395
|
-
def eager_load(*args); end
|
396
|
-
|
397
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
398
|
-
def includes(*args); end
|
399
|
-
|
400
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
401
|
-
def from(*args); end
|
402
|
-
|
403
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
404
|
-
def lock(*args); end
|
405
|
-
|
406
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
407
|
-
def readonly(*args); end
|
408
|
-
|
409
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
410
|
-
def or(*args); end
|
411
|
-
|
412
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
413
|
-
def having(*args); end
|
414
|
-
|
415
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
416
|
-
def create_with(*args); end
|
417
|
-
|
418
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
419
|
-
def distinct(*args); end
|
420
|
-
|
421
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
422
|
-
def references(*args); end
|
423
|
-
|
424
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
425
|
-
def none(*args); end
|
426
|
-
|
427
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
428
|
-
def unscope(*args); end
|
429
|
-
|
430
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
431
|
-
def merge(*args); end
|
432
|
-
|
433
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
434
|
-
def except(*args); end
|
435
|
-
|
436
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
437
|
-
def extending(*args, &block); end
|
438
|
-
end
|
439
|
-
|
440
|
-
class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
441
|
-
include SpellBook::CustomFinderMethods
|
442
|
-
extend T::Sig
|
443
|
-
extend T::Generic
|
444
|
-
Elem = type_member(fixed: SpellBook)
|
445
|
-
|
446
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
447
|
-
def biology(*args); end
|
448
|
-
|
449
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
450
|
-
def dark_art(*args); end
|
451
|
-
|
452
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
453
|
-
def unclassified(*args); end
|
454
|
-
|
298
|
+
module SpellBook::QueryMethodsReturningAssociationRelation
|
455
299
|
sig { returns(SpellBook::ActiveRecord_AssociationRelation) }
|
456
300
|
def all; end
|
457
301
|
|
458
|
-
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::
|
302
|
+
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
|
459
303
|
def unscoped(&block); end
|
460
304
|
|
461
305
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
@@ -538,16 +382,4 @@ class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Assoc
|
|
538
382
|
|
539
383
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
540
384
|
def extending(*args, &block); end
|
541
|
-
|
542
|
-
sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
|
543
|
-
def <<(*records); end
|
544
|
-
|
545
|
-
sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
|
546
|
-
def append(*records); end
|
547
|
-
|
548
|
-
sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
|
549
|
-
def push(*records); end
|
550
|
-
|
551
|
-
sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
|
552
|
-
def concat(*records); end
|
553
385
|
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,105 +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.merge(*args); end
|
153
|
-
|
154
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
155
|
-
def self.except(*args); end
|
156
|
-
|
157
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
158
|
-
def self.extending(*args, &block); end
|
159
67
|
end
|
160
68
|
|
161
|
-
|
162
|
-
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
163
|
-
include SpellBook::HABTM_Spells::CustomFinderMethods
|
164
|
-
extend T::Sig
|
165
|
-
extend T::Generic
|
166
|
-
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
167
|
-
|
69
|
+
module SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
168
70
|
sig { returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
169
71
|
def all; end
|
170
72
|
|
@@ -253,17 +155,11 @@ class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
|
|
253
155
|
def extending(*args, &block); end
|
254
156
|
end
|
255
157
|
|
256
|
-
|
257
|
-
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
258
|
-
include SpellBook::HABTM_Spells::CustomFinderMethods
|
259
|
-
extend T::Sig
|
260
|
-
extend T::Generic
|
261
|
-
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
262
|
-
|
158
|
+
module SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
263
159
|
sig { returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
264
160
|
def all; end
|
265
161
|
|
266
|
-
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::
|
162
|
+
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
267
163
|
def unscoped(&block); end
|
268
164
|
|
269
165
|
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
@@ -348,98 +244,24 @@ class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::
|
|
348
244
|
def extending(*args, &block); end
|
349
245
|
end
|
350
246
|
|
351
|
-
class SpellBook::HABTM_Spells::
|
247
|
+
class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
|
248
|
+
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
352
249
|
include SpellBook::HABTM_Spells::CustomFinderMethods
|
353
|
-
|
354
|
-
extend T::Generic
|
250
|
+
include SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
355
251
|
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
252
|
+
end
|
356
253
|
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
364
|
-
def select(*args); end
|
365
|
-
|
366
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
367
|
-
def order(*args); end
|
368
|
-
|
369
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
370
|
-
def reorder(*args); end
|
371
|
-
|
372
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
373
|
-
def group(*args); end
|
374
|
-
|
375
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
376
|
-
def limit(*args); end
|
377
|
-
|
378
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
379
|
-
def offset(*args); end
|
380
|
-
|
381
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
382
|
-
def joins(*args); end
|
383
|
-
|
384
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
385
|
-
def left_joins(*args); end
|
386
|
-
|
387
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
388
|
-
def left_outer_joins(*args); end
|
389
|
-
|
390
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
391
|
-
def where(*args); end
|
392
|
-
|
393
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
394
|
-
def rewhere(*args); end
|
395
|
-
|
396
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
397
|
-
def preload(*args); end
|
398
|
-
|
399
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
400
|
-
def eager_load(*args); end
|
401
|
-
|
402
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
403
|
-
def includes(*args); end
|
404
|
-
|
405
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
406
|
-
def from(*args); end
|
407
|
-
|
408
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
409
|
-
def lock(*args); end
|
410
|
-
|
411
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
412
|
-
def readonly(*args); end
|
413
|
-
|
414
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
415
|
-
def or(*args); end
|
416
|
-
|
417
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
418
|
-
def having(*args); end
|
419
|
-
|
420
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
421
|
-
def create_with(*args); end
|
422
|
-
|
423
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
424
|
-
def distinct(*args); end
|
425
|
-
|
426
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
427
|
-
def references(*args); end
|
428
|
-
|
429
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
430
|
-
def none(*args); end
|
431
|
-
|
432
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
433
|
-
def unscope(*args); end
|
434
|
-
|
435
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
436
|
-
def merge(*args); end
|
437
|
-
|
438
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
439
|
-
def except(*args); end
|
254
|
+
class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
255
|
+
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
256
|
+
include SpellBook::HABTM_Spells::CustomFinderMethods
|
257
|
+
include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
258
|
+
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
259
|
+
end
|
440
260
|
|
441
|
-
|
442
|
-
|
261
|
+
class SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
262
|
+
include SpellBook::HABTM_Spells::CustomFinderMethods
|
263
|
+
include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
264
|
+
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
443
265
|
|
444
266
|
sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
|
445
267
|
def <<(*records); end
|