sorbet-rails 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CONTRIBUTING.md +2 -2
- data/README.md +22 -1
- data/lib/sorbet-rails/actionmailer.rbi +7 -0
- data/lib/sorbet-rails/activerecord.rbi +3 -0
- data/lib/sorbet-rails/config.rb +5 -0
- data/lib/sorbet-rails/helper_rbi_formatter.rb +3 -0
- data/lib/sorbet-rails/mailer_rbi_formatter.rb +38 -0
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +26 -6
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +4 -5
- data/lib/sorbet-rails/model_plugins/active_record_enum.rb +37 -3
- data/lib/sorbet-rails/model_plugins/active_record_named_scope.rb +2 -0
- data/lib/sorbet-rails/model_plugins/active_record_overrides.rb +27 -0
- data/lib/sorbet-rails/model_plugins/active_storage_methods.rb +60 -0
- data/lib/sorbet-rails/model_plugins/plugins.rb +4 -0
- data/lib/sorbet-rails/sorbet_utils.rb +68 -0
- data/lib/sorbet-rails/tasks/rails_rbi.rake +20 -0
- data/lib/sorbet-rails/utils.rb +5 -0
- data/sorbet-rails.gemspec +1 -1
- data/spec/generators/rails-template.rb +145 -16
- data/spec/generators/sorbet_test_cases.rb +11 -0
- data/spec/helper_rbi_formatter_spec.rb +19 -0
- data/spec/mailer_rbi_formatter_spec.rb +13 -0
- data/spec/model_rbi_formatter_spec.rb +12 -2
- data/spec/rails_helper.rb +20 -0
- data/spec/rake_rails_rbi_mailers_spec.rb +21 -0
- data/spec/rake_rails_rbi_models_spec.rb +1 -21
- data/spec/sorbet_spec.rb +13 -0
- data/spec/sorbet_utils_spec.rb +126 -0
- data/spec/support/v4.2/Gemfile.lock +5 -5
- data/spec/support/v4.2/app/mailers/application_mailer.rb +3 -0
- data/spec/support/v4.2/app/mailers/daily_prophet_mailer.rb +9 -0
- data/spec/support/v4.2/app/mailers/hogwarts_acceptance_mailer.rb +13 -0
- data/spec/support/v4.2/app/models/wizard.rb +14 -0
- data/spec/support/v4.2/db/migrate/20190620000005_add_broom_to_wizard.rb +6 -0
- data/spec/support/v4.2/db/schema.rb +2 -1
- data/spec/support/v4.2/sorbet_test_cases.rb +11 -0
- data/spec/support/v5.0/Gemfile.lock +6 -6
- data/spec/support/v5.0/app/mailers/daily_prophet_mailer.rb +9 -0
- data/spec/support/v5.0/app/mailers/hogwarts_acceptance_mailer.rb +13 -0
- data/spec/support/v5.0/app/models/wizard.rb +33 -0
- data/spec/support/v5.0/config/initializers/new_framework_defaults.rb +1 -1
- data/spec/support/v5.0/db/migrate/20190620000001_create_wizards.rb +1 -1
- data/spec/support/v5.0/db/migrate/20190620000002_create_wands.rb +1 -1
- data/spec/support/v5.0/db/migrate/20190620000003_create_spell_books.rb +1 -1
- data/spec/support/v5.0/db/migrate/20190620000004_add_more_column_types_to_wands.rb +1 -1
- data/spec/support/v5.0/db/migrate/20190620000005_add_broom_to_wizard.rb +6 -0
- data/spec/support/v5.0/db/migrate/20190620000006_add_more_enums_to_wizard.rb +9 -0
- data/spec/support/v5.0/db/schema.rb +9 -4
- data/spec/support/v5.0/sorbet_test_cases.rb +11 -0
- data/spec/support/v5.1/Gemfile.lock +6 -6
- data/spec/support/v5.1/app/mailers/daily_prophet_mailer.rb +9 -0
- data/spec/support/v5.1/app/mailers/hogwarts_acceptance_mailer.rb +13 -0
- data/spec/support/v5.1/app/models/wizard.rb +33 -0
- data/spec/support/v5.1/db/migrate/20190620000001_create_wizards.rb +1 -1
- data/spec/support/v5.1/db/migrate/20190620000002_create_wands.rb +1 -1
- data/spec/support/v5.1/db/migrate/20190620000003_create_spell_books.rb +1 -1
- data/spec/support/v5.1/db/migrate/20190620000004_add_more_column_types_to_wands.rb +1 -1
- data/spec/support/v5.1/db/migrate/20190620000005_add_broom_to_wizard.rb +6 -0
- data/spec/support/v5.1/db/migrate/20190620000006_add_more_enums_to_wizard.rb +9 -0
- data/spec/support/v5.1/db/schema.rb +7 -2
- data/spec/support/v5.1/sorbet_test_cases.rb +11 -0
- data/spec/support/v5.2/Gemfile.lock +6 -6
- data/spec/support/v5.2/app/mailers/daily_prophet_mailer.rb +9 -0
- data/spec/support/v5.2/app/mailers/hogwarts_acceptance_mailer.rb +13 -0
- data/spec/support/v5.2/app/models/wizard.rb +34 -0
- data/spec/support/v5.2/db/migrate/20190620000005_add_broom_to_wizard.rb +6 -0
- data/spec/support/v5.2/db/migrate/20190620000006_add_more_enums_to_wizard.rb +9 -0
- data/spec/support/v5.2/db/schema.rb +7 -2
- data/spec/support/v5.2/sorbet_test_cases.rb +11 -0
- data/spec/support/v6.0/Gemfile.lock +6 -6
- data/spec/support/v6.0/app/mailers/daily_prophet_mailer.rb +9 -0
- data/spec/support/v6.0/app/mailers/hogwarts_acceptance_mailer.rb +13 -0
- data/spec/support/v6.0/app/models/wizard.rb +35 -1
- data/spec/support/v6.0/db/migrate/20190620000005_add_broom_to_wizard.rb +6 -0
- data/spec/support/v6.0/db/migrate/20190620000006_add_more_enums_to_wizard.rb +9 -0
- data/spec/support/v6.0/db/schema.rb +6 -1
- data/spec/support/v6.0/sorbet_test_cases.rb +11 -0
- data/spec/test_data/v4.2/expected_application_mailer.rbi +5 -0
- data/spec/test_data/v4.2/expected_daily_prophet_mailer.rbi +7 -0
- data/spec/test_data/v4.2/expected_helpers_with_application_and_devise_helpers.rbi +29 -0
- data/spec/test_data/v4.2/expected_hogwarts_acceptance_mailer.rbi +10 -0
- data/spec/test_data/v4.2/expected_srb_tc_output.txt +57 -1
- data/spec/test_data/v4.2/expected_wizard.rbi +69 -0
- data/spec/test_data/v4.2/expected_wizard_wo_spellbook.rbi +69 -0
- data/spec/test_data/v5.0/expected_application_mailer.rbi +5 -0
- data/spec/test_data/v5.0/expected_daily_prophet_mailer.rbi +7 -0
- data/spec/test_data/v5.0/expected_helpers_with_application_and_devise_helpers.rbi +29 -0
- data/spec/test_data/v5.0/expected_hogwarts_acceptance_mailer.rbi +10 -0
- data/spec/test_data/v5.0/expected_spell_book.rbi +2 -2
- data/spec/test_data/v5.0/expected_wizard.rbi +294 -0
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +294 -0
- data/spec/test_data/v5.1/expected_application_mailer.rbi +5 -0
- data/spec/test_data/v5.1/expected_daily_prophet_mailer.rbi +7 -0
- data/spec/test_data/v5.1/expected_helpers_with_application_and_devise_helpers.rbi +29 -0
- data/spec/test_data/v5.1/expected_hogwarts_acceptance_mailer.rbi +10 -0
- data/spec/test_data/v5.1/expected_spell_book.rbi +2 -2
- data/spec/test_data/v5.1/expected_wizard.rbi +294 -0
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +294 -0
- data/spec/test_data/v5.2-no-sorbet/expected_helpers_with_application_and_devise_helpers.rbi +29 -0
- data/spec/test_data/v5.2/expected_application_mailer.rbi +5 -0
- data/spec/test_data/v5.2/expected_attachment.rbi +4 -4
- data/spec/test_data/v5.2/expected_daily_prophet_mailer.rbi +7 -0
- data/spec/test_data/v5.2/expected_helpers_with_application_and_devise_helpers.rbi +29 -0
- data/spec/test_data/v5.2/expected_hogwarts_acceptance_mailer.rbi +10 -0
- data/spec/test_data/v5.2/expected_spell_book.rbi +2 -2
- data/spec/test_data/v5.2/expected_wizard.rbi +342 -0
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +342 -0
- data/spec/test_data/v6.0/expected_application_mailer.rbi +5 -0
- data/spec/test_data/v6.0/expected_attachment.rbi +4 -4
- data/spec/test_data/v6.0/expected_blob.rbi +28 -22
- data/spec/test_data/v6.0/expected_daily_prophet_mailer.rbi +7 -0
- data/spec/test_data/v6.0/expected_helpers_with_application_and_devise_helpers.rbi +29 -0
- data/spec/test_data/v6.0/expected_hogwarts_acceptance_mailer.rbi +10 -0
- data/spec/test_data/v6.0/expected_spell_book.rbi +2 -2
- data/spec/test_data/v6.0/expected_wizard.rbi +526 -16
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +526 -16
- metadata +94 -1
@@ -0,0 +1,7 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# This is an autogenerated file for Rails helpers.
|
3
|
+
# Please rerun rake rails_rbi:mailers to regenerate.
|
4
|
+
class DailyProphetMailer
|
5
|
+
sig { params(wizards: T::Array[Wizard], hotnews_only: T::Boolean).returns(ActionMailer::MessageDelivery) }
|
6
|
+
def self.notify_subscribers(wizards, hotnews_only); end
|
7
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# This is an autogenerated file for Rails helpers.
|
3
|
+
# Please rerun rake rails_rbi:helpers to regenerate.
|
4
|
+
module ApplicationHelper
|
5
|
+
include Kernel
|
6
|
+
include ActionView::Helpers
|
7
|
+
include DeviseHelper
|
8
|
+
end
|
9
|
+
|
10
|
+
module BarHelper
|
11
|
+
include Kernel
|
12
|
+
include ActionView::Helpers
|
13
|
+
include ApplicationHelper
|
14
|
+
include DeviseHelper
|
15
|
+
end
|
16
|
+
|
17
|
+
module BazHelper
|
18
|
+
include Kernel
|
19
|
+
include ActionView::Helpers
|
20
|
+
include ApplicationHelper
|
21
|
+
include DeviseHelper
|
22
|
+
end
|
23
|
+
|
24
|
+
module FooHelper
|
25
|
+
include Kernel
|
26
|
+
include ActionView::Helpers
|
27
|
+
include ApplicationHelper
|
28
|
+
include DeviseHelper
|
29
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# This is an autogenerated file for Rails helpers.
|
3
|
+
# Please rerun rake rails_rbi:mailers to regenerate.
|
4
|
+
class HogwartsAcceptanceMailer
|
5
|
+
sig { params(student: Wizard).returns(ActionMailer::MessageDelivery) }
|
6
|
+
def self.notify(student); end
|
7
|
+
|
8
|
+
sig { params(student: T.untyped).returns(ActionMailer::MessageDelivery) }
|
9
|
+
def self.notify_retry(student); end
|
10
|
+
end
|
@@ -72,10 +72,10 @@ end
|
|
72
72
|
module SpellBook::GeneratedAssociationMethods
|
73
73
|
extend T::Sig
|
74
74
|
|
75
|
-
sig { returns(
|
75
|
+
sig { returns(::Wizard) }
|
76
76
|
def wizard; end
|
77
77
|
|
78
|
-
sig { params(value:
|
78
|
+
sig { params(value: ::Wizard).void }
|
79
79
|
def wizard=(value); end
|
80
80
|
end
|
81
81
|
|
@@ -5,6 +5,54 @@
|
|
5
5
|
module Wizard::EnumInstanceMethods
|
6
6
|
extend T::Sig
|
7
7
|
|
8
|
+
sig { returns(T::Boolean) }
|
9
|
+
def broom_nimbus?; end
|
10
|
+
|
11
|
+
sig { void }
|
12
|
+
def broom_nimbus!; end
|
13
|
+
|
14
|
+
sig { returns(T::Boolean) }
|
15
|
+
def broom_firebolt?; end
|
16
|
+
|
17
|
+
sig { void }
|
18
|
+
def broom_firebolt!; end
|
19
|
+
|
20
|
+
sig { returns(T::Boolean) }
|
21
|
+
def color_brown_eyes?; end
|
22
|
+
|
23
|
+
sig { void }
|
24
|
+
def color_brown_eyes!; end
|
25
|
+
|
26
|
+
sig { returns(T::Boolean) }
|
27
|
+
def color_green_eyes?; end
|
28
|
+
|
29
|
+
sig { void }
|
30
|
+
def color_green_eyes!; end
|
31
|
+
|
32
|
+
sig { returns(T::Boolean) }
|
33
|
+
def color_blue_eyes?; end
|
34
|
+
|
35
|
+
sig { void }
|
36
|
+
def color_blue_eyes!; end
|
37
|
+
|
38
|
+
sig { returns(T::Boolean) }
|
39
|
+
def brown_hair?; end
|
40
|
+
|
41
|
+
sig { void }
|
42
|
+
def brown_hair!; end
|
43
|
+
|
44
|
+
sig { returns(T::Boolean) }
|
45
|
+
def black_hair?; end
|
46
|
+
|
47
|
+
sig { void }
|
48
|
+
def black_hair!; end
|
49
|
+
|
50
|
+
sig { returns(T::Boolean) }
|
51
|
+
def blonde_hair?; end
|
52
|
+
|
53
|
+
sig { void }
|
54
|
+
def blonde_hair!; end
|
55
|
+
|
8
56
|
sig { returns(T::Boolean) }
|
9
57
|
def Gryffindor?; end
|
10
58
|
|
@@ -28,6 +76,36 @@ module Wizard::EnumInstanceMethods
|
|
28
76
|
|
29
77
|
sig { void }
|
30
78
|
def Slytherin!; end
|
79
|
+
|
80
|
+
sig { returns(T::Boolean) }
|
81
|
+
def Hagrid?; end
|
82
|
+
|
83
|
+
sig { void }
|
84
|
+
def Hagrid!; end
|
85
|
+
|
86
|
+
sig { returns(T::Boolean) }
|
87
|
+
def quidditch_keeper?; end
|
88
|
+
|
89
|
+
sig { void }
|
90
|
+
def quidditch_keeper!; end
|
91
|
+
|
92
|
+
sig { returns(T::Boolean) }
|
93
|
+
def quidditch_seeker?; end
|
94
|
+
|
95
|
+
sig { void }
|
96
|
+
def quidditch_seeker!; end
|
97
|
+
|
98
|
+
sig { returns(T::Boolean) }
|
99
|
+
def quidditch_beater?; end
|
100
|
+
|
101
|
+
sig { void }
|
102
|
+
def quidditch_beater!; end
|
103
|
+
|
104
|
+
sig { returns(T::Boolean) }
|
105
|
+
def quidditch_chaser?; end
|
106
|
+
|
107
|
+
sig { void }
|
108
|
+
def quidditch_chaser!; end
|
31
109
|
end
|
32
110
|
|
33
111
|
module Wizard::ActiveRelation_WhereNot
|
@@ -38,6 +116,15 @@ end
|
|
38
116
|
module Wizard::GeneratedAttributeMethods
|
39
117
|
extend T::Sig
|
40
118
|
|
119
|
+
sig { returns(T.nilable(String)) }
|
120
|
+
def broom; end
|
121
|
+
|
122
|
+
sig { params(value: T.nilable(T.any(Integer, String, Symbol))).void }
|
123
|
+
def broom=(value); end
|
124
|
+
|
125
|
+
sig { returns(T::Boolean) }
|
126
|
+
def broom?; end
|
127
|
+
|
41
128
|
sig { returns(DateTime) }
|
42
129
|
def created_at; end
|
43
130
|
|
@@ -47,6 +134,33 @@ module Wizard::GeneratedAttributeMethods
|
|
47
134
|
sig { returns(T::Boolean) }
|
48
135
|
def created_at?; end
|
49
136
|
|
137
|
+
sig { returns(T.nilable(String)) }
|
138
|
+
def eye_color; end
|
139
|
+
|
140
|
+
sig { params(value: T.nilable(T.any(Integer, String, Symbol))).void }
|
141
|
+
def eye_color=(value); end
|
142
|
+
|
143
|
+
sig { returns(T::Boolean) }
|
144
|
+
def eye_color?; end
|
145
|
+
|
146
|
+
sig { returns(T.nilable(String)) }
|
147
|
+
def hair_color; end
|
148
|
+
|
149
|
+
sig { params(value: T.nilable(T.any(Integer, String, Symbol))).void }
|
150
|
+
def hair_color=(value); end
|
151
|
+
|
152
|
+
sig { returns(T::Boolean) }
|
153
|
+
def hair_color?; end
|
154
|
+
|
155
|
+
sig { returns(T.nilable(Integer)) }
|
156
|
+
def hair_length; end
|
157
|
+
|
158
|
+
sig { params(value: T.nilable(Integer)).void }
|
159
|
+
def hair_length=(value); end
|
160
|
+
|
161
|
+
sig { returns(T::Boolean) }
|
162
|
+
def hair_length?; end
|
163
|
+
|
50
164
|
sig { returns(T.nilable(String)) }
|
51
165
|
def house; end
|
52
166
|
|
@@ -92,6 +206,15 @@ module Wizard::GeneratedAttributeMethods
|
|
92
206
|
sig { returns(T::Boolean) }
|
93
207
|
def parent_email?; end
|
94
208
|
|
209
|
+
sig { returns(T.nilable(String)) }
|
210
|
+
def quidditch_position; end
|
211
|
+
|
212
|
+
sig { params(value: T.nilable(T.any(Integer, String, Symbol))).void }
|
213
|
+
def quidditch_position=(value); end
|
214
|
+
|
215
|
+
sig { returns(T::Boolean) }
|
216
|
+
def quidditch_position?; end
|
217
|
+
|
95
218
|
sig { returns(DateTime) }
|
96
219
|
def updated_at; end
|
97
220
|
|
@@ -143,12 +266,30 @@ class Wizard < ApplicationRecord
|
|
143
266
|
extend T::Sig
|
144
267
|
extend T::Generic
|
145
268
|
|
269
|
+
sig { returns(T::Hash[T.any(String, Symbol), String]) }
|
270
|
+
def self.brooms; end
|
271
|
+
|
272
|
+
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
273
|
+
def self.eye_colors; end
|
274
|
+
|
275
|
+
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
276
|
+
def self.hair_colors; end
|
277
|
+
|
146
278
|
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
147
279
|
def self.houses; end
|
148
280
|
|
281
|
+
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
282
|
+
def self.professors; end
|
283
|
+
|
284
|
+
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
285
|
+
def self.quidditch_positions; end
|
286
|
+
|
149
287
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
150
288
|
def self.Gryffindor(*args); end
|
151
289
|
|
290
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
291
|
+
def self.Hagrid(*args); end
|
292
|
+
|
152
293
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
153
294
|
def self.Hufflepuff(*args); end
|
154
295
|
|
@@ -158,6 +299,42 @@ class Wizard < ApplicationRecord
|
|
158
299
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
159
300
|
def self.Slytherin(*args); end
|
160
301
|
|
302
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
303
|
+
def self.black_hair(*args); end
|
304
|
+
|
305
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
306
|
+
def self.blonde_hair(*args); end
|
307
|
+
|
308
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
309
|
+
def self.broom_firebolt(*args); end
|
310
|
+
|
311
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
312
|
+
def self.broom_nimbus(*args); end
|
313
|
+
|
314
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
315
|
+
def self.brown_hair(*args); end
|
316
|
+
|
317
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
318
|
+
def self.color_blue_eyes(*args); end
|
319
|
+
|
320
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
321
|
+
def self.color_brown_eyes(*args); end
|
322
|
+
|
323
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
324
|
+
def self.color_green_eyes(*args); end
|
325
|
+
|
326
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
327
|
+
def self.quidditch_beater(*args); end
|
328
|
+
|
329
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
330
|
+
def self.quidditch_chaser(*args); end
|
331
|
+
|
332
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
333
|
+
def self.quidditch_keeper(*args); end
|
334
|
+
|
335
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
336
|
+
def self.quidditch_seeker(*args); end
|
337
|
+
|
161
338
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
162
339
|
def self.recent(*args); end
|
163
340
|
|
@@ -320,6 +497,9 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
|
320
497
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
321
498
|
def Gryffindor(*args); end
|
322
499
|
|
500
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
501
|
+
def Hagrid(*args); end
|
502
|
+
|
323
503
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
324
504
|
def Hufflepuff(*args); end
|
325
505
|
|
@@ -329,6 +509,42 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
|
329
509
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
330
510
|
def Slytherin(*args); end
|
331
511
|
|
512
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
513
|
+
def black_hair(*args); end
|
514
|
+
|
515
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
516
|
+
def blonde_hair(*args); end
|
517
|
+
|
518
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
519
|
+
def broom_firebolt(*args); end
|
520
|
+
|
521
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
522
|
+
def broom_nimbus(*args); end
|
523
|
+
|
524
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
525
|
+
def brown_hair(*args); end
|
526
|
+
|
527
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
528
|
+
def color_blue_eyes(*args); end
|
529
|
+
|
530
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
531
|
+
def color_brown_eyes(*args); end
|
532
|
+
|
533
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
534
|
+
def color_green_eyes(*args); end
|
535
|
+
|
536
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
537
|
+
def quidditch_beater(*args); end
|
538
|
+
|
539
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
540
|
+
def quidditch_chaser(*args); end
|
541
|
+
|
542
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
543
|
+
def quidditch_keeper(*args); end
|
544
|
+
|
545
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
546
|
+
def quidditch_seeker(*args); end
|
547
|
+
|
332
548
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
333
549
|
def recent(*args); end
|
334
550
|
|
@@ -508,6 +724,9 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
508
724
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
509
725
|
def Gryffindor(*args); end
|
510
726
|
|
727
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
728
|
+
def Hagrid(*args); end
|
729
|
+
|
511
730
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
512
731
|
def Hufflepuff(*args); end
|
513
732
|
|
@@ -517,6 +736,42 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
517
736
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
518
737
|
def Slytherin(*args); end
|
519
738
|
|
739
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
740
|
+
def black_hair(*args); end
|
741
|
+
|
742
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
743
|
+
def blonde_hair(*args); end
|
744
|
+
|
745
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
746
|
+
def broom_firebolt(*args); end
|
747
|
+
|
748
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
749
|
+
def broom_nimbus(*args); end
|
750
|
+
|
751
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
752
|
+
def brown_hair(*args); end
|
753
|
+
|
754
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
755
|
+
def color_blue_eyes(*args); end
|
756
|
+
|
757
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
758
|
+
def color_brown_eyes(*args); end
|
759
|
+
|
760
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
761
|
+
def color_green_eyes(*args); end
|
762
|
+
|
763
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
764
|
+
def quidditch_beater(*args); end
|
765
|
+
|
766
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
767
|
+
def quidditch_chaser(*args); end
|
768
|
+
|
769
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
770
|
+
def quidditch_keeper(*args); end
|
771
|
+
|
772
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
773
|
+
def quidditch_seeker(*args); end
|
774
|
+
|
520
775
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
521
776
|
def recent(*args); end
|
522
777
|
|
@@ -695,6 +950,9 @@ class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
695
950
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
696
951
|
def Gryffindor(*args); end
|
697
952
|
|
953
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
954
|
+
def Hagrid(*args); end
|
955
|
+
|
698
956
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
699
957
|
def Hufflepuff(*args); end
|
700
958
|
|
@@ -704,6 +962,42 @@ class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
704
962
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
705
963
|
def Slytherin(*args); end
|
706
964
|
|
965
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
966
|
+
def black_hair(*args); end
|
967
|
+
|
968
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
969
|
+
def blonde_hair(*args); end
|
970
|
+
|
971
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
972
|
+
def broom_firebolt(*args); end
|
973
|
+
|
974
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
975
|
+
def broom_nimbus(*args); end
|
976
|
+
|
977
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
978
|
+
def brown_hair(*args); end
|
979
|
+
|
980
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
981
|
+
def color_blue_eyes(*args); end
|
982
|
+
|
983
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
984
|
+
def color_brown_eyes(*args); end
|
985
|
+
|
986
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
987
|
+
def color_green_eyes(*args); end
|
988
|
+
|
989
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
990
|
+
def quidditch_beater(*args); end
|
991
|
+
|
992
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
993
|
+
def quidditch_chaser(*args); end
|
994
|
+
|
995
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
996
|
+
def quidditch_keeper(*args); end
|
997
|
+
|
998
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
999
|
+
def quidditch_seeker(*args); end
|
1000
|
+
|
707
1001
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
708
1002
|
def recent(*args); end
|
709
1003
|
|