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,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
|
|
@@ -105,6 +228,30 @@ end
|
|
105
228
|
module Wizard::GeneratedAssociationMethods
|
106
229
|
extend T::Sig
|
107
230
|
|
231
|
+
sig { returns(::ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy) }
|
232
|
+
def hats_attachments; end
|
233
|
+
|
234
|
+
sig { params(value: T.any(T::Array[::ActiveStorage::Attachment], ::ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy)).void }
|
235
|
+
def hats_attachments=(value); end
|
236
|
+
|
237
|
+
sig { returns(::ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy) }
|
238
|
+
def hats_blobs; end
|
239
|
+
|
240
|
+
sig { params(value: T.any(T::Array[::ActiveStorage::Blob], ::ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy)).void }
|
241
|
+
def hats_blobs=(value); end
|
242
|
+
|
243
|
+
sig { returns(T.nilable(::ActiveStorage::Attachment)) }
|
244
|
+
def school_photo_attachment; end
|
245
|
+
|
246
|
+
sig { params(value: T.nilable(::ActiveStorage::Attachment)).void }
|
247
|
+
def school_photo_attachment=(value); end
|
248
|
+
|
249
|
+
sig { returns(T.nilable(::ActiveStorage::Blob)) }
|
250
|
+
def school_photo_blob; end
|
251
|
+
|
252
|
+
sig { params(value: T.nilable(::ActiveStorage::Blob)).void }
|
253
|
+
def school_photo_blob=(value); end
|
254
|
+
|
108
255
|
sig { returns(::SpellBook::ActiveRecord_Associations_CollectionProxy) }
|
109
256
|
def spell_books; end
|
110
257
|
|
@@ -143,12 +290,30 @@ class Wizard < ApplicationRecord
|
|
143
290
|
extend T::Sig
|
144
291
|
extend T::Generic
|
145
292
|
|
293
|
+
sig { returns(T::Hash[T.any(String, Symbol), String]) }
|
294
|
+
def self.brooms; end
|
295
|
+
|
296
|
+
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
297
|
+
def self.eye_colors; end
|
298
|
+
|
299
|
+
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
300
|
+
def self.hair_colors; end
|
301
|
+
|
146
302
|
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
147
303
|
def self.houses; end
|
148
304
|
|
305
|
+
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
306
|
+
def self.professors; end
|
307
|
+
|
308
|
+
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
309
|
+
def self.quidditch_positions; end
|
310
|
+
|
149
311
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
150
312
|
def self.Gryffindor(*args); end
|
151
313
|
|
314
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
315
|
+
def self.Hagrid(*args); end
|
316
|
+
|
152
317
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
153
318
|
def self.Hufflepuff(*args); end
|
154
319
|
|
@@ -158,9 +323,51 @@ class Wizard < ApplicationRecord
|
|
158
323
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
159
324
|
def self.Slytherin(*args); end
|
160
325
|
|
326
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
327
|
+
def self.black_hair(*args); end
|
328
|
+
|
329
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
330
|
+
def self.blonde_hair(*args); end
|
331
|
+
|
332
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
333
|
+
def self.broom_firebolt(*args); end
|
334
|
+
|
335
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
336
|
+
def self.broom_nimbus(*args); end
|
337
|
+
|
338
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
339
|
+
def self.brown_hair(*args); end
|
340
|
+
|
341
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
342
|
+
def self.color_blue_eyes(*args); end
|
343
|
+
|
344
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
345
|
+
def self.color_brown_eyes(*args); end
|
346
|
+
|
347
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
348
|
+
def self.color_green_eyes(*args); end
|
349
|
+
|
350
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
351
|
+
def self.quidditch_beater(*args); end
|
352
|
+
|
353
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
354
|
+
def self.quidditch_chaser(*args); end
|
355
|
+
|
356
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
357
|
+
def self.quidditch_keeper(*args); end
|
358
|
+
|
359
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
360
|
+
def self.quidditch_seeker(*args); end
|
361
|
+
|
161
362
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
162
363
|
def self.recent(*args); end
|
163
364
|
|
365
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
366
|
+
def self.with_attached_hats(*args); end
|
367
|
+
|
368
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
369
|
+
def self.with_attached_school_photo(*args); end
|
370
|
+
|
164
371
|
sig { returns(Wizard::ActiveRecord_Relation) }
|
165
372
|
def self.all; end
|
166
373
|
|
@@ -320,6 +527,9 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
|
320
527
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
321
528
|
def Gryffindor(*args); end
|
322
529
|
|
530
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
531
|
+
def Hagrid(*args); end
|
532
|
+
|
323
533
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
324
534
|
def Hufflepuff(*args); end
|
325
535
|
|
@@ -329,9 +539,51 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
|
329
539
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
330
540
|
def Slytherin(*args); end
|
331
541
|
|
542
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
543
|
+
def black_hair(*args); end
|
544
|
+
|
545
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
546
|
+
def blonde_hair(*args); end
|
547
|
+
|
548
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
549
|
+
def broom_firebolt(*args); end
|
550
|
+
|
551
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
552
|
+
def broom_nimbus(*args); end
|
553
|
+
|
554
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
555
|
+
def brown_hair(*args); end
|
556
|
+
|
557
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
558
|
+
def color_blue_eyes(*args); end
|
559
|
+
|
560
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
561
|
+
def color_brown_eyes(*args); end
|
562
|
+
|
563
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
564
|
+
def color_green_eyes(*args); end
|
565
|
+
|
566
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
567
|
+
def quidditch_beater(*args); end
|
568
|
+
|
569
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
570
|
+
def quidditch_chaser(*args); end
|
571
|
+
|
572
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
573
|
+
def quidditch_keeper(*args); end
|
574
|
+
|
575
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
576
|
+
def quidditch_seeker(*args); end
|
577
|
+
|
332
578
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
333
579
|
def recent(*args); end
|
334
580
|
|
581
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
582
|
+
def with_attached_hats(*args); end
|
583
|
+
|
584
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
585
|
+
def with_attached_school_photo(*args); end
|
586
|
+
|
335
587
|
sig { returns(Wizard::ActiveRecord_Relation) }
|
336
588
|
def all; end
|
337
589
|
|
@@ -508,6 +760,9 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
508
760
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
509
761
|
def Gryffindor(*args); end
|
510
762
|
|
763
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
764
|
+
def Hagrid(*args); end
|
765
|
+
|
511
766
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
512
767
|
def Hufflepuff(*args); end
|
513
768
|
|
@@ -517,9 +772,51 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
517
772
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
518
773
|
def Slytherin(*args); end
|
519
774
|
|
775
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
776
|
+
def black_hair(*args); end
|
777
|
+
|
778
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
779
|
+
def blonde_hair(*args); end
|
780
|
+
|
781
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
782
|
+
def broom_firebolt(*args); end
|
783
|
+
|
784
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
785
|
+
def broom_nimbus(*args); end
|
786
|
+
|
787
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
788
|
+
def brown_hair(*args); end
|
789
|
+
|
790
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
791
|
+
def color_blue_eyes(*args); end
|
792
|
+
|
793
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
794
|
+
def color_brown_eyes(*args); end
|
795
|
+
|
796
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
797
|
+
def color_green_eyes(*args); end
|
798
|
+
|
799
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
800
|
+
def quidditch_beater(*args); end
|
801
|
+
|
802
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
803
|
+
def quidditch_chaser(*args); end
|
804
|
+
|
805
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
806
|
+
def quidditch_keeper(*args); end
|
807
|
+
|
808
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
809
|
+
def quidditch_seeker(*args); end
|
810
|
+
|
520
811
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
521
812
|
def recent(*args); end
|
522
813
|
|
814
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
815
|
+
def with_attached_hats(*args); end
|
816
|
+
|
817
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
818
|
+
def with_attached_school_photo(*args); end
|
819
|
+
|
523
820
|
sig { returns(Wizard::ActiveRecord_AssociationRelation) }
|
524
821
|
def all; end
|
525
822
|
|
@@ -695,6 +992,9 @@ class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
695
992
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
696
993
|
def Gryffindor(*args); end
|
697
994
|
|
995
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
996
|
+
def Hagrid(*args); end
|
997
|
+
|
698
998
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
699
999
|
def Hufflepuff(*args); end
|
700
1000
|
|
@@ -704,9 +1004,51 @@ class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
704
1004
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
705
1005
|
def Slytherin(*args); end
|
706
1006
|
|
1007
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
1008
|
+
def black_hair(*args); end
|
1009
|
+
|
1010
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
1011
|
+
def blonde_hair(*args); end
|
1012
|
+
|
1013
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
1014
|
+
def broom_firebolt(*args); end
|
1015
|
+
|
1016
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
1017
|
+
def broom_nimbus(*args); end
|
1018
|
+
|
1019
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
1020
|
+
def brown_hair(*args); end
|
1021
|
+
|
1022
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
1023
|
+
def color_blue_eyes(*args); end
|
1024
|
+
|
1025
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
1026
|
+
def color_brown_eyes(*args); end
|
1027
|
+
|
1028
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
1029
|
+
def color_green_eyes(*args); end
|
1030
|
+
|
1031
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
1032
|
+
def quidditch_beater(*args); end
|
1033
|
+
|
1034
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
1035
|
+
def quidditch_chaser(*args); end
|
1036
|
+
|
1037
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
1038
|
+
def quidditch_keeper(*args); end
|
1039
|
+
|
1040
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
1041
|
+
def quidditch_seeker(*args); end
|
1042
|
+
|
707
1043
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
708
1044
|
def recent(*args); end
|
709
1045
|
|
1046
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
1047
|
+
def with_attached_hats(*args); end
|
1048
|
+
|
1049
|
+
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
1050
|
+
def with_attached_school_photo(*args); end
|
1051
|
+
|
710
1052
|
sig { returns(Wizard::ActiveRecord_AssociationRelation) }
|
711
1053
|
def all; end
|
712
1054
|
|