sorbet-rails 0.6.5 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitattributes +1 -2
- data/.gitignore +2 -1
- data/.travis.yml +1 -1
- data/README.md +60 -11
- data/Rakefile +3 -3
- data/lib/bundled_rbi/customizabel_rbi_formatter.rbi +29 -0
- data/lib/bundled_rbi/pluck_to_tstruct.rbi +2 -1
- data/lib/bundled_rbi/typed_enum.rbi +7 -0
- data/lib/sorbet-rails.rb +1 -3
- data/lib/sorbet-rails/active_record_rbi_formatter.rb +2 -2
- data/lib/sorbet-rails/config.rb +12 -0
- data/lib/sorbet-rails/dependent_gem_rbis/activerecord.rbi +3 -0
- data/lib/sorbet-rails/deprecation.rb +1 -0
- data/lib/sorbet-rails/gem_plugins/kaminari_plugin.rb +8 -0
- data/lib/sorbet-rails/helper_rbi_formatter.rb +1 -1
- data/lib/sorbet-rails/job_rbi_formatter.rb +75 -62
- data/lib/sorbet-rails/mailer_rbi_formatter.rb +40 -27
- data/lib/sorbet-rails/model_column_utils.rb +129 -0
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +40 -1
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +12 -112
- data/lib/sorbet-rails/model_plugins/active_record_querying.rb +2 -2
- data/lib/sorbet-rails/model_plugins/active_record_serialized_attribute.rb +68 -0
- data/lib/sorbet-rails/model_plugins/base.rb +6 -8
- data/lib/sorbet-rails/model_plugins/plugins.rb +3 -0
- data/lib/sorbet-rails/model_rbi_formatter.rb +3 -3
- data/lib/sorbet-rails/model_utils.rb +5 -2
- data/lib/sorbet-rails/rails_mixins/generated_url_helpers.rb +2 -3
- data/lib/sorbet-rails/rails_mixins/pluck_to_tstruct.rb +54 -7
- data/lib/sorbet-rails/railtie.rb +0 -2
- data/lib/sorbet-rails/routes_rbi_formatter.rb +6 -2
- data/lib/sorbet-rails/sorbet_utils.rb +152 -150
- data/lib/sorbet-rails/tasks/rails_rbi.rake +9 -8
- data/sorbet-rails.gemspec +2 -2
- data/spec/bin/run_spec.sh +1 -1
- data/spec/generators/rails-template.rb +16 -0
- data/spec/generators/sorbet_test_cases.rb +29 -57
- data/spec/job_rbi_formatter_spec.rb +1 -1
- data/spec/pluck_to_tstruct_spec.rb +115 -16
- data/spec/rails_helper.rb +2 -2
- data/spec/rake_rails_rbi_jobs_spec.rb +20 -0
- data/spec/rake_rails_rbi_mailers_spec.rb +21 -0
- data/spec/sorbet_spec.rb +5 -5
- data/spec/support/v5.0/Gemfile +1 -1
- data/spec/support/v5.0/Gemfile.lock +15 -14
- data/spec/support/v5.0/app/controllers/application_controller.rb +1 -1
- data/spec/support/v5.0/app/models/headmaster.rb +1 -1
- data/spec/support/v5.0/app/models/potion.rb +1 -1
- data/spec/support/v5.0/app/models/robe.rb +1 -1
- data/spec/support/v5.0/app/models/school.rb +1 -1
- data/spec/support/v5.0/app/models/spell.rb +1 -1
- data/spec/support/v5.0/app/models/subject.rb +1 -1
- data/spec/support/v5.0/app/models/wizard.rb +5 -0
- data/spec/support/v5.0/config/environments/development.rb +1 -1
- data/spec/support/v5.0/config/environments/production.rb +1 -1
- data/spec/support/v5.0/config/environments/test.rb +1 -1
- data/spec/support/v5.0/config/initializers/wrap_parameters.rb +1 -1
- data/spec/support/v5.0/config/routes.rb +1 -1
- data/spec/support/v5.0/db/migrate/20190620000015_add_serialized_to_wizards.rb +9 -0
- data/spec/support/v5.0/db/schema.rb +8 -4
- data/spec/support/v5.0/sorbet_test_cases.rb +29 -57
- data/spec/support/v5.1/Gemfile.lock +13 -12
- data/spec/support/v5.1/app/controllers/application_controller.rb +1 -1
- data/spec/support/v5.1/app/models/headmaster.rb +1 -1
- data/spec/support/v5.1/app/models/school.rb +1 -1
- data/spec/support/v5.1/app/models/wizard.rb +5 -0
- data/spec/support/v5.1/config/environments/production.rb +1 -1
- data/spec/support/v5.1/config/initializers/wrap_parameters.rb +1 -1
- data/spec/support/v5.1/config/routes.rb +1 -1
- data/spec/support/v5.1/db/migrate/20190620000015_add_serialized_to_wizards.rb +9 -0
- data/spec/support/v5.1/db/schema.rb +5 -1
- data/spec/support/v5.1/sorbet_test_cases.rb +29 -57
- data/spec/support/v5.2/Gemfile +1 -1
- data/spec/support/v5.2/Gemfile.lock +15 -14
- data/spec/support/v5.2/app/models/headmaster.rb +1 -1
- data/spec/support/v5.2/app/models/school.rb +1 -1
- data/spec/support/v5.2/app/models/wizard.rb +5 -0
- data/spec/support/v5.2/config/environments/development.rb +1 -1
- data/spec/support/v5.2/config/environments/production.rb +1 -1
- data/spec/support/v5.2/config/environments/test.rb +1 -1
- data/spec/support/v5.2/config/initializers/wrap_parameters.rb +1 -1
- data/spec/support/v5.2/config/routes.rb +1 -1
- data/spec/support/v5.2/db/migrate/20190620000015_add_serialized_to_wizards.rb +9 -0
- data/spec/support/v5.2/db/schema.rb +5 -1
- data/spec/support/v5.2/sorbet_test_cases.rb +29 -57
- data/spec/support/v6.0/.gitignore +6 -0
- data/spec/support/v6.0/Gemfile +3 -3
- data/spec/support/v6.0/Gemfile.lock +82 -80
- data/spec/support/v6.0/app/models/wizard.rb +5 -0
- data/spec/support/v6.0/bin/bundle +22 -13
- data/spec/support/v6.0/config/environments/development.rb +1 -1
- data/spec/support/v6.0/config/environments/production.rb +1 -1
- data/spec/support/v6.0/config/environments/test.rb +2 -2
- data/spec/support/v6.0/config/routes.rb +1 -1
- data/spec/support/v6.0/db/migrate/20190620000015_add_serialized_to_wizards.rb +9 -0
- data/spec/support/v6.0/db/schema.rb +5 -1
- data/spec/support/v6.0/sorbet_test_cases.rb +29 -57
- data/spec/support/v6.0/tmp/pids/.keep +0 -0
- data/spec/test_data/v5.0/expected_application_job.rbi +2 -2
- data/spec/test_data/v5.0/expected_award_house_point_hourglasses.rbi +2 -2
- data/spec/test_data/v5.0/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v5.0/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v5.0/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v5.0/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v5.0/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v5.0/expected_headmaster.rbi +26 -2
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +2 -2
- data/spec/test_data/v5.0/expected_potion.rbi +14 -2
- data/spec/test_data/v5.0/expected_robe.rbi +14 -2
- data/spec/test_data/v5.0/expected_routes.rbi +4 -0
- data/spec/test_data/v5.0/expected_schema_migration.rbi +2 -2
- data/spec/test_data/v5.0/expected_school.rbi +14 -2
- data/spec/test_data/v5.0/expected_spell.rbi +2 -2
- data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +26 -2
- data/spec/test_data/v5.0/expected_spell_book.rbi +23 -11
- data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +26 -2
- data/spec/test_data/v5.0/expected_squib.rbi +65 -2
- data/spec/test_data/v5.0/expected_subject.rbi +2 -2
- data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +26 -2
- data/spec/test_data/v5.0/expected_wand.rbi +24 -12
- data/spec/test_data/v5.0/expected_wizard.rbi +123 -60
- data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +26 -2
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +123 -60
- data/spec/test_data/v5.1/expected_application_job.rbi +2 -2
- data/spec/test_data/v5.1/expected_award_house_point_hourglasses.rbi +2 -2
- data/spec/test_data/v5.1/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v5.1/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v5.1/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v5.1/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v5.1/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v5.1/expected_headmaster.rbi +26 -2
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +2 -2
- data/spec/test_data/v5.1/expected_potion.rbi +14 -2
- data/spec/test_data/v5.1/expected_robe.rbi +14 -2
- data/spec/test_data/v5.1/expected_routes.rbi +4 -0
- data/spec/test_data/v5.1/expected_schema_migration.rbi +2 -2
- data/spec/test_data/v5.1/expected_school.rbi +14 -2
- data/spec/test_data/v5.1/expected_spell.rbi +2 -2
- data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +26 -2
- data/spec/test_data/v5.1/expected_spell_book.rbi +23 -11
- data/spec/test_data/v5.1/expected_spell_book/habtm_spells.rbi +26 -2
- data/spec/test_data/v5.1/expected_squib.rbi +65 -2
- data/spec/test_data/v5.1/expected_subject.rbi +2 -2
- data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +26 -2
- data/spec/test_data/v5.1/expected_wand.rbi +24 -12
- data/spec/test_data/v5.1/expected_wizard.rbi +123 -60
- data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +26 -2
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +123 -60
- data/spec/test_data/v5.2/expected_application_job.rbi +2 -2
- data/spec/test_data/v5.2/expected_attachment.rbi +26 -2
- data/spec/test_data/v5.2/expected_award_house_point_hourglasses.rbi +2 -2
- data/spec/test_data/v5.2/expected_blob.rbi +27 -3
- data/spec/test_data/v5.2/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v5.2/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v5.2/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v5.2/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v5.2/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v5.2/expected_headmaster.rbi +26 -2
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +2 -2
- data/spec/test_data/v5.2/expected_potion.rbi +14 -2
- data/spec/test_data/v5.2/expected_robe.rbi +14 -2
- data/spec/test_data/v5.2/expected_routes.rbi +4 -0
- data/spec/test_data/v5.2/expected_schema_migration.rbi +2 -2
- data/spec/test_data/v5.2/expected_school.rbi +14 -2
- data/spec/test_data/v5.2/expected_spell.rbi +2 -2
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +26 -2
- data/spec/test_data/v5.2/expected_spell_book.rbi +23 -11
- data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +26 -2
- data/spec/test_data/v5.2/expected_squib.rbi +91 -4
- data/spec/test_data/v5.2/expected_subject.rbi +2 -2
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +26 -2
- data/spec/test_data/v5.2/expected_wand.rbi +24 -12
- data/spec/test_data/v5.2/expected_wizard.rbi +149 -62
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +26 -2
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +149 -62
- data/spec/test_data/v6.0/expected_application_job.rbi +2 -2
- data/spec/test_data/v6.0/expected_attachment.rbi +26 -2
- data/spec/test_data/v6.0/expected_award_house_point_hourglasses.rbi +2 -2
- data/spec/test_data/v6.0/expected_blob.rbi +27 -3
- data/spec/test_data/v6.0/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v6.0/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v6.0/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v6.0/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v6.0/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v6.0/expected_headmaster.rbi +26 -2
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +2 -2
- data/spec/test_data/v6.0/expected_potion.rbi +14 -2
- data/spec/test_data/v6.0/expected_robe.rbi +14 -2
- data/spec/test_data/v6.0/expected_routes.rbi +4 -0
- data/spec/test_data/v6.0/expected_schema_migration.rbi +2 -2
- data/spec/test_data/v6.0/expected_school.rbi +14 -2
- data/spec/test_data/v6.0/expected_spell.rbi +2 -2
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +26 -2
- data/spec/test_data/v6.0/expected_spell_book.rbi +23 -11
- data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +26 -2
- data/spec/test_data/v6.0/expected_squib.rbi +91 -4
- data/spec/test_data/v6.0/expected_subject.rbi +2 -2
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +26 -2
- data/spec/test_data/v6.0/expected_wand.rbi +24 -12
- data/spec/test_data/v6.0/expected_wizard.rbi +149 -62
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +26 -2
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +149 -62
- data/spec/tstruct_comparable.rb +13 -0
- metadata +61 -15
- data/lib/bundled_rbi/parameters.rbi +0 -28
- data/lib/sorbet-rails/custom_types/boolean_string.rb +0 -42
- data/lib/sorbet-rails/custom_types/integer_string.rb +0 -45
- data/lib/sorbet-rails/rails_mixins/custom_params_methods.rb +0 -57
- data/spec/boolean_string_spec.rb +0 -59
- data/spec/custom_params_methods_spec.rb +0 -138
- data/spec/integer_string_spec.rb +0 -46
@@ -111,6 +111,44 @@ module Wizard::ActiveRelation_WhereNot
|
|
111
111
|
def not(opts, *rest); end
|
112
112
|
end
|
113
113
|
|
114
|
+
module Wizard::GeneratedSerializedAttributeMethods
|
115
|
+
sig { returns(T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))) }
|
116
|
+
def newt_subjects; end
|
117
|
+
|
118
|
+
sig { params(value: T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))).void }
|
119
|
+
def newt_subjects=(value); end
|
120
|
+
|
121
|
+
sig { returns(T::Boolean) }
|
122
|
+
def newt_subjects?; end
|
123
|
+
|
124
|
+
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
125
|
+
def owl_results; end
|
126
|
+
|
127
|
+
sig { params(value: T.nilable(T::Hash[T.untyped, T.untyped])).void }
|
128
|
+
def owl_results=(value); end
|
129
|
+
|
130
|
+
sig { returns(T::Boolean) }
|
131
|
+
def owl_results?; end
|
132
|
+
|
133
|
+
sig { returns(T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))) }
|
134
|
+
def patronus_characteristics; end
|
135
|
+
|
136
|
+
sig { params(value: T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))).void }
|
137
|
+
def patronus_characteristics=(value); end
|
138
|
+
|
139
|
+
sig { returns(T::Boolean) }
|
140
|
+
def patronus_characteristics?; end
|
141
|
+
|
142
|
+
sig { returns(T.nilable(T::Array[T.untyped])) }
|
143
|
+
def pets; end
|
144
|
+
|
145
|
+
sig { params(value: T.nilable(T::Array[T.untyped])).void }
|
146
|
+
def pets=(value); end
|
147
|
+
|
148
|
+
sig { returns(T::Boolean) }
|
149
|
+
def pets?; end
|
150
|
+
end
|
151
|
+
|
114
152
|
module Wizard::GeneratedAttributeMethods
|
115
153
|
sig { returns(T::Boolean) }
|
116
154
|
def broom?; end
|
@@ -230,64 +268,6 @@ module Wizard::GeneratedAttributeMethods
|
|
230
268
|
def updated_at?; end
|
231
269
|
end
|
232
270
|
|
233
|
-
class Wizard::Broom < T::Enum
|
234
|
-
enums do
|
235
|
-
Nimbus = new(%q{nimbus})
|
236
|
-
Firebolt = new(%q{firebolt})
|
237
|
-
end
|
238
|
-
|
239
|
-
end
|
240
|
-
|
241
|
-
class Wizard::EyeColor < T::Enum
|
242
|
-
enums do
|
243
|
-
Brown = new(%q{brown})
|
244
|
-
Green = new(%q{green})
|
245
|
-
Blue = new(%q{blue})
|
246
|
-
end
|
247
|
-
|
248
|
-
end
|
249
|
-
|
250
|
-
class Wizard::HairColor < T::Enum
|
251
|
-
enums do
|
252
|
-
Brown = new(%q{brown})
|
253
|
-
Black = new(%q{black})
|
254
|
-
Blonde = new(%q{blonde})
|
255
|
-
end
|
256
|
-
|
257
|
-
end
|
258
|
-
|
259
|
-
class Wizard::House < T::Enum
|
260
|
-
enums do
|
261
|
-
Gryffindor = new(%q{Gryffindor})
|
262
|
-
Hufflepuff = new(%q{Hufflepuff})
|
263
|
-
Ravenclaw = new(%q{Ravenclaw})
|
264
|
-
Slytherin = new(%q{Slytherin})
|
265
|
-
end
|
266
|
-
|
267
|
-
end
|
268
|
-
|
269
|
-
class Wizard::ProfessorEnum < T::Enum
|
270
|
-
enums do
|
271
|
-
SeverusSnape = new(%q{Severus Snape})
|
272
|
-
MinervaMcGonagall = new(%q{Minerva McGonagall})
|
273
|
-
PomonaSprout = new(%q{Pomona Sprout})
|
274
|
-
FiliusFlitwick = new(%q{Filius Flitwick})
|
275
|
-
Hagrid = new(%q{Hagrid})
|
276
|
-
AlastorMadEyeMoody = new(%q{Alastor 'Mad-Eye' Moody})
|
277
|
-
end
|
278
|
-
|
279
|
-
end
|
280
|
-
|
281
|
-
class Wizard::QuidditchPosition < T::Enum
|
282
|
-
enums do
|
283
|
-
Keeper = new(%q{keeper})
|
284
|
-
Seeker = new(%q{seeker})
|
285
|
-
Beater = new(%q{beater})
|
286
|
-
Chaser = new(%q{chaser})
|
287
|
-
end
|
288
|
-
|
289
|
-
end
|
290
|
-
|
291
271
|
module Wizard::CustomFinderMethods
|
292
272
|
sig { params(limit: Integer).returns(T::Array[Wizard]) }
|
293
273
|
def first_n(limit); end
|
@@ -307,6 +287,7 @@ end
|
|
307
287
|
|
308
288
|
class Wizard < ApplicationRecord
|
309
289
|
include Wizard::EnumInstanceMethods
|
290
|
+
include Wizard::GeneratedSerializedAttributeMethods
|
310
291
|
include Wizard::GeneratedAttributeMethods
|
311
292
|
include Wizard::GeneratedAssociationMethods
|
312
293
|
extend Wizard::CustomFinderMethods
|
@@ -477,6 +458,64 @@ class Wizard < ApplicationRecord
|
|
477
458
|
|
478
459
|
sig { params(value: T.nilable(Wizard::QuidditchPosition)).void }
|
479
460
|
def typed_quidditch_position=(value); end
|
461
|
+
|
462
|
+
class Broom < T::Enum
|
463
|
+
enums do
|
464
|
+
Nimbus = new(%q{nimbus})
|
465
|
+
Firebolt = new(%q{firebolt})
|
466
|
+
end
|
467
|
+
|
468
|
+
end
|
469
|
+
|
470
|
+
class EyeColor < T::Enum
|
471
|
+
enums do
|
472
|
+
Brown = new(%q{brown})
|
473
|
+
Green = new(%q{green})
|
474
|
+
Blue = new(%q{blue})
|
475
|
+
end
|
476
|
+
|
477
|
+
end
|
478
|
+
|
479
|
+
class HairColor < T::Enum
|
480
|
+
enums do
|
481
|
+
Brown = new(%q{brown})
|
482
|
+
Black = new(%q{black})
|
483
|
+
Blonde = new(%q{blonde})
|
484
|
+
end
|
485
|
+
|
486
|
+
end
|
487
|
+
|
488
|
+
class House < T::Enum
|
489
|
+
enums do
|
490
|
+
Gryffindor = new(%q{Gryffindor})
|
491
|
+
Hufflepuff = new(%q{Hufflepuff})
|
492
|
+
Ravenclaw = new(%q{Ravenclaw})
|
493
|
+
Slytherin = new(%q{Slytherin})
|
494
|
+
end
|
495
|
+
|
496
|
+
end
|
497
|
+
|
498
|
+
class ProfessorEnum < T::Enum
|
499
|
+
enums do
|
500
|
+
SeverusSnape = new(%q{Severus Snape})
|
501
|
+
MinervaMcGonagall = new(%q{Minerva McGonagall})
|
502
|
+
PomonaSprout = new(%q{Pomona Sprout})
|
503
|
+
FiliusFlitwick = new(%q{Filius Flitwick})
|
504
|
+
Hagrid = new(%q{Hagrid})
|
505
|
+
AlastorMadEyeMoody = new(%q{Alastor 'Mad-Eye' Moody})
|
506
|
+
end
|
507
|
+
|
508
|
+
end
|
509
|
+
|
510
|
+
class QuidditchPosition < T::Enum
|
511
|
+
enums do
|
512
|
+
Keeper = new(%q{keeper})
|
513
|
+
Seeker = new(%q{seeker})
|
514
|
+
Beater = new(%q{beater})
|
515
|
+
Chaser = new(%q{chaser})
|
516
|
+
end
|
517
|
+
|
518
|
+
end
|
480
519
|
end
|
481
520
|
|
482
521
|
class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -952,7 +991,7 @@ module Wizard::QueryMethodsReturningRelation
|
|
952
991
|
load: T.nilable(T::Boolean),
|
953
992
|
error_on_ignore: T.nilable(T::Boolean),
|
954
993
|
block: T.nilable(T.proc.params(e: Wizard::ActiveRecord_Relation).void)
|
955
|
-
).returns(
|
994
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
956
995
|
end
|
957
996
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
958
997
|
end
|
@@ -1065,7 +1104,7 @@ module Wizard::QueryMethodsReturningAssociationRelation
|
|
1065
1104
|
load: T.nilable(T::Boolean),
|
1066
1105
|
error_on_ignore: T.nilable(T::Boolean),
|
1067
1106
|
block: T.nilable(T.proc.params(e: Wizard::ActiveRecord_AssociationRelation).void)
|
1068
|
-
).returns(
|
1107
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
1069
1108
|
end
|
1070
1109
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
1071
1110
|
end
|
@@ -1074,7 +1113,7 @@ module Wizard::GeneratedAssociationMethods
|
|
1074
1113
|
sig { returns(::ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy) }
|
1075
1114
|
def hats_attachments; end
|
1076
1115
|
|
1077
|
-
sig { returns(T::Array[
|
1116
|
+
sig { returns(T::Array[T.untyped]) }
|
1078
1117
|
def hats_attachment_ids; end
|
1079
1118
|
|
1080
1119
|
sig { params(value: T::Enumerable[::ActiveStorage::Attachment]).void }
|
@@ -1083,7 +1122,7 @@ module Wizard::GeneratedAssociationMethods
|
|
1083
1122
|
sig { returns(::ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy) }
|
1084
1123
|
def hats_blobs; end
|
1085
1124
|
|
1086
|
-
sig { returns(T::Array[
|
1125
|
+
sig { returns(T::Array[T.untyped]) }
|
1087
1126
|
def hats_blob_ids; end
|
1088
1127
|
|
1089
1128
|
sig { params(value: T::Enumerable[::ActiveStorage::Blob]).void }
|
@@ -1092,21 +1131,57 @@ module Wizard::GeneratedAssociationMethods
|
|
1092
1131
|
sig { returns(T.nilable(::School)) }
|
1093
1132
|
def school; end
|
1094
1133
|
|
1134
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
1135
|
+
def build_school(*args, &block); end
|
1136
|
+
|
1137
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
1138
|
+
def create_school(*args, &block); end
|
1139
|
+
|
1140
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
1141
|
+
def create_school!(*args, &block); end
|
1142
|
+
|
1095
1143
|
sig { params(value: T.nilable(::School)).void }
|
1096
1144
|
def school=(value); end
|
1097
1145
|
|
1146
|
+
sig { returns(T.nilable(::School)) }
|
1147
|
+
def reload_school; end
|
1148
|
+
|
1098
1149
|
sig { returns(T.nilable(::ActiveStorage::Attachment)) }
|
1099
1150
|
def school_photo_attachment; end
|
1100
1151
|
|
1152
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
1153
|
+
def build_school_photo_attachment(*args, &block); end
|
1154
|
+
|
1155
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
1156
|
+
def create_school_photo_attachment(*args, &block); end
|
1157
|
+
|
1158
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
1159
|
+
def create_school_photo_attachment!(*args, &block); end
|
1160
|
+
|
1101
1161
|
sig { params(value: T.nilable(::ActiveStorage::Attachment)).void }
|
1102
1162
|
def school_photo_attachment=(value); end
|
1103
1163
|
|
1164
|
+
sig { returns(T.nilable(::ActiveStorage::Attachment)) }
|
1165
|
+
def reload_school_photo_attachment; end
|
1166
|
+
|
1104
1167
|
sig { returns(T.nilable(::ActiveStorage::Blob)) }
|
1105
1168
|
def school_photo_blob; end
|
1106
1169
|
|
1170
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
1171
|
+
def build_school_photo_blob(*args, &block); end
|
1172
|
+
|
1173
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
1174
|
+
def create_school_photo_blob(*args, &block); end
|
1175
|
+
|
1176
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
1177
|
+
def create_school_photo_blob!(*args, &block); end
|
1178
|
+
|
1107
1179
|
sig { params(value: T.nilable(::ActiveStorage::Blob)).void }
|
1108
1180
|
def school_photo_blob=(value); end
|
1109
1181
|
|
1182
|
+
sig { returns(T.nilable(::ActiveStorage::Blob)) }
|
1183
|
+
def reload_school_photo_blob; end
|
1184
|
+
|
1110
1185
|
sig { returns(::SpellBook::ActiveRecord_Associations_CollectionProxy) }
|
1111
1186
|
def spell_books; end
|
1112
1187
|
|
@@ -1128,9 +1203,21 @@ module Wizard::GeneratedAssociationMethods
|
|
1128
1203
|
sig { returns(T.nilable(::Wand)) }
|
1129
1204
|
def wand; end
|
1130
1205
|
|
1206
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
1207
|
+
def build_wand(*args, &block); end
|
1208
|
+
|
1209
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
1210
|
+
def create_wand(*args, &block); end
|
1211
|
+
|
1212
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
1213
|
+
def create_wand!(*args, &block); end
|
1214
|
+
|
1131
1215
|
sig { params(value: T.nilable(::Wand)).void }
|
1132
1216
|
def wand=(value); end
|
1133
1217
|
|
1218
|
+
sig { returns(T.nilable(::Wand)) }
|
1219
|
+
def reload_wand; end
|
1220
|
+
|
1134
1221
|
sig { returns(T.nilable(ActiveStorage::Attached::One)) }
|
1135
1222
|
def school_photo; end
|
1136
1223
|
|
@@ -31,14 +31,38 @@ module Wizard::HABTM_Subjects::GeneratedAssociationMethods
|
|
31
31
|
sig { returns(T.nilable(::Wizard)) }
|
32
32
|
def left_side; end
|
33
33
|
|
34
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
35
|
+
def build_left_side(*args, &block); end
|
36
|
+
|
37
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
38
|
+
def create_left_side(*args, &block); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
41
|
+
def create_left_side!(*args, &block); end
|
42
|
+
|
34
43
|
sig { params(value: T.nilable(::Wizard)).void }
|
35
44
|
def left_side=(value); end
|
36
45
|
|
46
|
+
sig { returns(T.nilable(::Wizard)) }
|
47
|
+
def reload_left_side; end
|
48
|
+
|
37
49
|
sig { returns(T.nilable(::Subject)) }
|
38
50
|
def subject; end
|
39
51
|
|
52
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Subject).void)).returns(::Subject) }
|
53
|
+
def build_subject(*args, &block); end
|
54
|
+
|
55
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Subject).void)).returns(::Subject) }
|
56
|
+
def create_subject(*args, &block); end
|
57
|
+
|
58
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Subject).void)).returns(::Subject) }
|
59
|
+
def create_subject!(*args, &block); end
|
60
|
+
|
40
61
|
sig { params(value: T.nilable(::Subject)).void }
|
41
62
|
def subject=(value); end
|
63
|
+
|
64
|
+
sig { returns(T.nilable(::Subject)) }
|
65
|
+
def reload_subject; end
|
42
66
|
end
|
43
67
|
|
44
68
|
module Wizard::HABTM_Subjects::CustomFinderMethods
|
@@ -174,7 +198,7 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningRelation
|
|
174
198
|
load: T.nilable(T::Boolean),
|
175
199
|
error_on_ignore: T.nilable(T::Boolean),
|
176
200
|
block: T.nilable(T.proc.params(e: Wizard::HABTM_Subjects::ActiveRecord_Relation).void)
|
177
|
-
).returns(
|
201
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
178
202
|
end
|
179
203
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
180
204
|
end
|
@@ -287,7 +311,7 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
|
|
287
311
|
load: T.nilable(T::Boolean),
|
288
312
|
error_on_ignore: T.nilable(T::Boolean),
|
289
313
|
block: T.nilable(T.proc.params(e: Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation).void)
|
290
|
-
).returns(
|
314
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
291
315
|
end
|
292
316
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
293
317
|
end
|
@@ -111,6 +111,44 @@ module Wizard::ActiveRelation_WhereNot
|
|
111
111
|
def not(opts, *rest); end
|
112
112
|
end
|
113
113
|
|
114
|
+
module Wizard::GeneratedSerializedAttributeMethods
|
115
|
+
sig { returns(T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))) }
|
116
|
+
def newt_subjects; end
|
117
|
+
|
118
|
+
sig { params(value: T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))).void }
|
119
|
+
def newt_subjects=(value); end
|
120
|
+
|
121
|
+
sig { returns(T::Boolean) }
|
122
|
+
def newt_subjects?; end
|
123
|
+
|
124
|
+
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
125
|
+
def owl_results; end
|
126
|
+
|
127
|
+
sig { params(value: T.nilable(T::Hash[T.untyped, T.untyped])).void }
|
128
|
+
def owl_results=(value); end
|
129
|
+
|
130
|
+
sig { returns(T::Boolean) }
|
131
|
+
def owl_results?; end
|
132
|
+
|
133
|
+
sig { returns(T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))) }
|
134
|
+
def patronus_characteristics; end
|
135
|
+
|
136
|
+
sig { params(value: T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))).void }
|
137
|
+
def patronus_characteristics=(value); end
|
138
|
+
|
139
|
+
sig { returns(T::Boolean) }
|
140
|
+
def patronus_characteristics?; end
|
141
|
+
|
142
|
+
sig { returns(T.nilable(T::Array[T.untyped])) }
|
143
|
+
def pets; end
|
144
|
+
|
145
|
+
sig { params(value: T.nilable(T::Array[T.untyped])).void }
|
146
|
+
def pets=(value); end
|
147
|
+
|
148
|
+
sig { returns(T::Boolean) }
|
149
|
+
def pets?; end
|
150
|
+
end
|
151
|
+
|
114
152
|
module Wizard::GeneratedAttributeMethods
|
115
153
|
sig { returns(T::Boolean) }
|
116
154
|
def broom?; end
|
@@ -230,64 +268,6 @@ module Wizard::GeneratedAttributeMethods
|
|
230
268
|
def updated_at?; end
|
231
269
|
end
|
232
270
|
|
233
|
-
class Wizard::Broom < T::Enum
|
234
|
-
enums do
|
235
|
-
Nimbus = new(%q{nimbus})
|
236
|
-
Firebolt = new(%q{firebolt})
|
237
|
-
end
|
238
|
-
|
239
|
-
end
|
240
|
-
|
241
|
-
class Wizard::EyeColor < T::Enum
|
242
|
-
enums do
|
243
|
-
Brown = new(%q{brown})
|
244
|
-
Green = new(%q{green})
|
245
|
-
Blue = new(%q{blue})
|
246
|
-
end
|
247
|
-
|
248
|
-
end
|
249
|
-
|
250
|
-
class Wizard::HairColor < T::Enum
|
251
|
-
enums do
|
252
|
-
Brown = new(%q{brown})
|
253
|
-
Black = new(%q{black})
|
254
|
-
Blonde = new(%q{blonde})
|
255
|
-
end
|
256
|
-
|
257
|
-
end
|
258
|
-
|
259
|
-
class Wizard::House < T::Enum
|
260
|
-
enums do
|
261
|
-
Gryffindor = new(%q{Gryffindor})
|
262
|
-
Hufflepuff = new(%q{Hufflepuff})
|
263
|
-
Ravenclaw = new(%q{Ravenclaw})
|
264
|
-
Slytherin = new(%q{Slytherin})
|
265
|
-
end
|
266
|
-
|
267
|
-
end
|
268
|
-
|
269
|
-
class Wizard::ProfessorEnum < T::Enum
|
270
|
-
enums do
|
271
|
-
SeverusSnape = new(%q{Severus Snape})
|
272
|
-
MinervaMcGonagall = new(%q{Minerva McGonagall})
|
273
|
-
PomonaSprout = new(%q{Pomona Sprout})
|
274
|
-
FiliusFlitwick = new(%q{Filius Flitwick})
|
275
|
-
Hagrid = new(%q{Hagrid})
|
276
|
-
AlastorMadEyeMoody = new(%q{Alastor 'Mad-Eye' Moody})
|
277
|
-
end
|
278
|
-
|
279
|
-
end
|
280
|
-
|
281
|
-
class Wizard::QuidditchPosition < T::Enum
|
282
|
-
enums do
|
283
|
-
Keeper = new(%q{keeper})
|
284
|
-
Seeker = new(%q{seeker})
|
285
|
-
Beater = new(%q{beater})
|
286
|
-
Chaser = new(%q{chaser})
|
287
|
-
end
|
288
|
-
|
289
|
-
end
|
290
|
-
|
291
271
|
module Wizard::CustomFinderMethods
|
292
272
|
sig { params(limit: Integer).returns(T::Array[Wizard]) }
|
293
273
|
def first_n(limit); end
|
@@ -307,6 +287,7 @@ end
|
|
307
287
|
|
308
288
|
class Wizard < ApplicationRecord
|
309
289
|
include Wizard::EnumInstanceMethods
|
290
|
+
include Wizard::GeneratedSerializedAttributeMethods
|
310
291
|
include Wizard::GeneratedAttributeMethods
|
311
292
|
include Wizard::GeneratedAssociationMethods
|
312
293
|
extend Wizard::CustomFinderMethods
|
@@ -477,6 +458,64 @@ class Wizard < ApplicationRecord
|
|
477
458
|
|
478
459
|
sig { params(value: T.nilable(Wizard::QuidditchPosition)).void }
|
479
460
|
def typed_quidditch_position=(value); end
|
461
|
+
|
462
|
+
class Broom < T::Enum
|
463
|
+
enums do
|
464
|
+
Nimbus = new(%q{nimbus})
|
465
|
+
Firebolt = new(%q{firebolt})
|
466
|
+
end
|
467
|
+
|
468
|
+
end
|
469
|
+
|
470
|
+
class EyeColor < T::Enum
|
471
|
+
enums do
|
472
|
+
Brown = new(%q{brown})
|
473
|
+
Green = new(%q{green})
|
474
|
+
Blue = new(%q{blue})
|
475
|
+
end
|
476
|
+
|
477
|
+
end
|
478
|
+
|
479
|
+
class HairColor < T::Enum
|
480
|
+
enums do
|
481
|
+
Brown = new(%q{brown})
|
482
|
+
Black = new(%q{black})
|
483
|
+
Blonde = new(%q{blonde})
|
484
|
+
end
|
485
|
+
|
486
|
+
end
|
487
|
+
|
488
|
+
class House < T::Enum
|
489
|
+
enums do
|
490
|
+
Gryffindor = new(%q{Gryffindor})
|
491
|
+
Hufflepuff = new(%q{Hufflepuff})
|
492
|
+
Ravenclaw = new(%q{Ravenclaw})
|
493
|
+
Slytherin = new(%q{Slytherin})
|
494
|
+
end
|
495
|
+
|
496
|
+
end
|
497
|
+
|
498
|
+
class ProfessorEnum < T::Enum
|
499
|
+
enums do
|
500
|
+
SeverusSnape = new(%q{Severus Snape})
|
501
|
+
MinervaMcGonagall = new(%q{Minerva McGonagall})
|
502
|
+
PomonaSprout = new(%q{Pomona Sprout})
|
503
|
+
FiliusFlitwick = new(%q{Filius Flitwick})
|
504
|
+
Hagrid = new(%q{Hagrid})
|
505
|
+
AlastorMadEyeMoody = new(%q{Alastor 'Mad-Eye' Moody})
|
506
|
+
end
|
507
|
+
|
508
|
+
end
|
509
|
+
|
510
|
+
class QuidditchPosition < T::Enum
|
511
|
+
enums do
|
512
|
+
Keeper = new(%q{keeper})
|
513
|
+
Seeker = new(%q{seeker})
|
514
|
+
Beater = new(%q{beater})
|
515
|
+
Chaser = new(%q{chaser})
|
516
|
+
end
|
517
|
+
|
518
|
+
end
|
480
519
|
end
|
481
520
|
|
482
521
|
class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -952,7 +991,7 @@ module Wizard::QueryMethodsReturningRelation
|
|
952
991
|
load: T.nilable(T::Boolean),
|
953
992
|
error_on_ignore: T.nilable(T::Boolean),
|
954
993
|
block: T.nilable(T.proc.params(e: Wizard::ActiveRecord_Relation).void)
|
955
|
-
).returns(
|
994
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
956
995
|
end
|
957
996
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
958
997
|
end
|
@@ -1065,7 +1104,7 @@ module Wizard::QueryMethodsReturningAssociationRelation
|
|
1065
1104
|
load: T.nilable(T::Boolean),
|
1066
1105
|
error_on_ignore: T.nilable(T::Boolean),
|
1067
1106
|
block: T.nilable(T.proc.params(e: Wizard::ActiveRecord_AssociationRelation).void)
|
1068
|
-
).returns(
|
1107
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
1069
1108
|
end
|
1070
1109
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
1071
1110
|
end
|
@@ -1074,7 +1113,7 @@ module Wizard::GeneratedAssociationMethods
|
|
1074
1113
|
sig { returns(::ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy) }
|
1075
1114
|
def hats_attachments; end
|
1076
1115
|
|
1077
|
-
sig { returns(T::Array[
|
1116
|
+
sig { returns(T::Array[T.untyped]) }
|
1078
1117
|
def hats_attachment_ids; end
|
1079
1118
|
|
1080
1119
|
sig { params(value: T::Enumerable[::ActiveStorage::Attachment]).void }
|
@@ -1083,7 +1122,7 @@ module Wizard::GeneratedAssociationMethods
|
|
1083
1122
|
sig { returns(::ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy) }
|
1084
1123
|
def hats_blobs; end
|
1085
1124
|
|
1086
|
-
sig { returns(T::Array[
|
1125
|
+
sig { returns(T::Array[T.untyped]) }
|
1087
1126
|
def hats_blob_ids; end
|
1088
1127
|
|
1089
1128
|
sig { params(value: T::Enumerable[::ActiveStorage::Blob]).void }
|
@@ -1092,21 +1131,57 @@ module Wizard::GeneratedAssociationMethods
|
|
1092
1131
|
sig { returns(T.nilable(T.untyped)) }
|
1093
1132
|
def school; end
|
1094
1133
|
|
1134
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
1135
|
+
def build_school(*args, &block); end
|
1136
|
+
|
1137
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
1138
|
+
def create_school(*args, &block); end
|
1139
|
+
|
1140
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
1141
|
+
def create_school!(*args, &block); end
|
1142
|
+
|
1095
1143
|
sig { params(value: T.nilable(T.untyped)).void }
|
1096
1144
|
def school=(value); end
|
1097
1145
|
|
1146
|
+
sig { returns(T.nilable(T.untyped)) }
|
1147
|
+
def reload_school; end
|
1148
|
+
|
1098
1149
|
sig { returns(T.nilable(::ActiveStorage::Attachment)) }
|
1099
1150
|
def school_photo_attachment; end
|
1100
1151
|
|
1152
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
1153
|
+
def build_school_photo_attachment(*args, &block); end
|
1154
|
+
|
1155
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
1156
|
+
def create_school_photo_attachment(*args, &block); end
|
1157
|
+
|
1158
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
1159
|
+
def create_school_photo_attachment!(*args, &block); end
|
1160
|
+
|
1101
1161
|
sig { params(value: T.nilable(::ActiveStorage::Attachment)).void }
|
1102
1162
|
def school_photo_attachment=(value); end
|
1103
1163
|
|
1164
|
+
sig { returns(T.nilable(::ActiveStorage::Attachment)) }
|
1165
|
+
def reload_school_photo_attachment; end
|
1166
|
+
|
1104
1167
|
sig { returns(T.nilable(::ActiveStorage::Blob)) }
|
1105
1168
|
def school_photo_blob; end
|
1106
1169
|
|
1170
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
1171
|
+
def build_school_photo_blob(*args, &block); end
|
1172
|
+
|
1173
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
1174
|
+
def create_school_photo_blob(*args, &block); end
|
1175
|
+
|
1176
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
1177
|
+
def create_school_photo_blob!(*args, &block); end
|
1178
|
+
|
1107
1179
|
sig { params(value: T.nilable(::ActiveStorage::Blob)).void }
|
1108
1180
|
def school_photo_blob=(value); end
|
1109
1181
|
|
1182
|
+
sig { returns(T.nilable(::ActiveStorage::Blob)) }
|
1183
|
+
def reload_school_photo_blob; end
|
1184
|
+
|
1110
1185
|
sig { returns(ActiveRecord::Associations::CollectionProxy) }
|
1111
1186
|
def spell_books; end
|
1112
1187
|
|
@@ -1122,9 +1197,21 @@ module Wizard::GeneratedAssociationMethods
|
|
1122
1197
|
sig { returns(T.nilable(::Wand)) }
|
1123
1198
|
def wand; end
|
1124
1199
|
|
1200
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
1201
|
+
def build_wand(*args, &block); end
|
1202
|
+
|
1203
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
1204
|
+
def create_wand(*args, &block); end
|
1205
|
+
|
1206
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
1207
|
+
def create_wand!(*args, &block); end
|
1208
|
+
|
1125
1209
|
sig { params(value: T.nilable(::Wand)).void }
|
1126
1210
|
def wand=(value); end
|
1127
1211
|
|
1212
|
+
sig { returns(T.nilable(::Wand)) }
|
1213
|
+
def reload_wand; end
|
1214
|
+
|
1128
1215
|
sig { returns(T.nilable(ActiveStorage::Attached::One)) }
|
1129
1216
|
def school_photo; end
|
1130
1217
|
|