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
@@ -159,7 +159,7 @@ module Subject::QueryMethodsReturningRelation
|
|
159
159
|
load: T.nilable(T::Boolean),
|
160
160
|
error_on_ignore: T.nilable(T::Boolean),
|
161
161
|
block: T.nilable(T.proc.params(e: Subject::ActiveRecord_Relation).void)
|
162
|
-
).returns(
|
162
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
163
163
|
end
|
164
164
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
165
165
|
end
|
@@ -260,7 +260,7 @@ module Subject::QueryMethodsReturningAssociationRelation
|
|
260
260
|
load: T.nilable(T::Boolean),
|
261
261
|
error_on_ignore: T.nilable(T::Boolean),
|
262
262
|
block: T.nilable(T.proc.params(e: Subject::ActiveRecord_AssociationRelation).void)
|
263
|
-
).returns(
|
263
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
264
264
|
end
|
265
265
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
266
266
|
end
|
@@ -31,14 +31,38 @@ module Subject::HABTM_Wizards::GeneratedAssociationMethods
|
|
31
31
|
sig { returns(T.nilable(::Subject)) }
|
32
32
|
def left_side; end
|
33
33
|
|
34
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Subject).void)).returns(::Subject) }
|
35
|
+
def build_left_side(*args, &block); end
|
36
|
+
|
37
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Subject).void)).returns(::Subject) }
|
38
|
+
def create_left_side(*args, &block); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Subject).void)).returns(::Subject) }
|
41
|
+
def create_left_side!(*args, &block); end
|
42
|
+
|
34
43
|
sig { params(value: T.nilable(::Subject)).void }
|
35
44
|
def left_side=(value); end
|
36
45
|
|
46
|
+
sig { returns(T.nilable(::Subject)) }
|
47
|
+
def reload_left_side; end
|
48
|
+
|
37
49
|
sig { returns(T.nilable(::Wizard)) }
|
38
50
|
def wizard; end
|
39
51
|
|
52
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
53
|
+
def build_wizard(*args, &block); end
|
54
|
+
|
55
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
56
|
+
def create_wizard(*args, &block); end
|
57
|
+
|
58
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
59
|
+
def create_wizard!(*args, &block); end
|
60
|
+
|
40
61
|
sig { params(value: T.nilable(::Wizard)).void }
|
41
62
|
def wizard=(value); end
|
63
|
+
|
64
|
+
sig { returns(T.nilable(::Wizard)) }
|
65
|
+
def reload_wizard; end
|
42
66
|
end
|
43
67
|
|
44
68
|
module Subject::HABTM_Wizards::CustomFinderMethods
|
@@ -162,7 +186,7 @@ module Subject::HABTM_Wizards::QueryMethodsReturningRelation
|
|
162
186
|
load: T.nilable(T::Boolean),
|
163
187
|
error_on_ignore: T.nilable(T::Boolean),
|
164
188
|
block: T.nilable(T.proc.params(e: Subject::HABTM_Wizards::ActiveRecord_Relation).void)
|
165
|
-
).returns(
|
189
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
166
190
|
end
|
167
191
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
168
192
|
end
|
@@ -263,7 +287,7 @@ module Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
|
|
263
287
|
load: T.nilable(T::Boolean),
|
264
288
|
error_on_ignore: T.nilable(T::Boolean),
|
265
289
|
block: T.nilable(T.proc.params(e: Subject::HABTM_Wizards::ActiveRecord_AssociationRelation).void)
|
266
|
-
).returns(
|
290
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
267
291
|
end
|
268
292
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
269
293
|
end
|
@@ -152,22 +152,24 @@ module Wand::GeneratedAttributeMethods
|
|
152
152
|
def wood_type?; end
|
153
153
|
end
|
154
154
|
|
155
|
-
class Wand::CoreType < T::Enum
|
156
|
-
enums do
|
157
|
-
PhoenixFeather = new(%q{phoenix_feather})
|
158
|
-
DragonHeartstring = new(%q{dragon_heartstring})
|
159
|
-
UnicornTailHair = new(%q{unicorn_tail_hair})
|
160
|
-
BasiliskHorn = new(%q{basilisk_horn})
|
161
|
-
end
|
162
|
-
|
163
|
-
end
|
164
|
-
|
165
155
|
module Wand::GeneratedAssociationMethods
|
166
156
|
sig { returns(::Wizard) }
|
167
157
|
def wizard; end
|
168
158
|
|
159
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
160
|
+
def build_wizard(*args, &block); end
|
161
|
+
|
162
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
163
|
+
def create_wizard(*args, &block); end
|
164
|
+
|
165
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
166
|
+
def create_wizard!(*args, &block); end
|
167
|
+
|
169
168
|
sig { params(value: ::Wizard).void }
|
170
169
|
def wizard=(value); end
|
170
|
+
|
171
|
+
sig { returns(::Wizard) }
|
172
|
+
def reload_wizard; end
|
171
173
|
end
|
172
174
|
|
173
175
|
module Wand::CustomFinderMethods
|
@@ -216,6 +218,16 @@ class Wand < ApplicationRecord
|
|
216
218
|
sig { params(value: T.nilable(Wand::CoreType)).void }
|
217
219
|
def typed_core_type=(value); end
|
218
220
|
|
221
|
+
class CoreType < T::Enum
|
222
|
+
enums do
|
223
|
+
PhoenixFeather = new(%q{phoenix_feather})
|
224
|
+
DragonHeartstring = new(%q{dragon_heartstring})
|
225
|
+
UnicornTailHair = new(%q{unicorn_tail_hair})
|
226
|
+
BasiliskHorn = new(%q{basilisk_horn})
|
227
|
+
end
|
228
|
+
|
229
|
+
end
|
230
|
+
|
219
231
|
sig { returns(T::Array[Wand]) }
|
220
232
|
def self.mythicals; end
|
221
233
|
end
|
@@ -384,7 +396,7 @@ module Wand::QueryMethodsReturningRelation
|
|
384
396
|
load: T.nilable(T::Boolean),
|
385
397
|
error_on_ignore: T.nilable(T::Boolean),
|
386
398
|
block: T.nilable(T.proc.params(e: Wand::ActiveRecord_Relation).void)
|
387
|
-
).returns(
|
399
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
388
400
|
end
|
389
401
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
390
402
|
end
|
@@ -485,7 +497,7 @@ module Wand::QueryMethodsReturningAssociationRelation
|
|
485
497
|
load: T.nilable(T::Boolean),
|
486
498
|
error_on_ignore: T.nilable(T::Boolean),
|
487
499
|
block: T.nilable(T.proc.params(e: Wand::ActiveRecord_AssociationRelation).void)
|
488
|
-
).returns(
|
500
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
489
501
|
end
|
490
502
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
491
503
|
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,71 +268,25 @@ 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::GeneratedAssociationMethods
|
292
272
|
sig { returns(T.nilable(::School)) }
|
293
273
|
def school; end
|
294
274
|
|
275
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
276
|
+
def build_school(*args, &block); end
|
277
|
+
|
278
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
279
|
+
def create_school(*args, &block); end
|
280
|
+
|
281
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
282
|
+
def create_school!(*args, &block); end
|
283
|
+
|
295
284
|
sig { params(value: T.nilable(::School)).void }
|
296
285
|
def school=(value); end
|
297
286
|
|
287
|
+
sig { returns(T.nilable(::School)) }
|
288
|
+
def reload_school; end
|
289
|
+
|
298
290
|
sig { returns(::SpellBook::ActiveRecord_Associations_CollectionProxy) }
|
299
291
|
def spell_books; end
|
300
292
|
|
@@ -316,8 +308,20 @@ module Wizard::GeneratedAssociationMethods
|
|
316
308
|
sig { returns(T.nilable(::Wand)) }
|
317
309
|
def wand; end
|
318
310
|
|
311
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
312
|
+
def build_wand(*args, &block); end
|
313
|
+
|
314
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
315
|
+
def create_wand(*args, &block); end
|
316
|
+
|
317
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
318
|
+
def create_wand!(*args, &block); end
|
319
|
+
|
319
320
|
sig { params(value: T.nilable(::Wand)).void }
|
320
321
|
def wand=(value); end
|
322
|
+
|
323
|
+
sig { returns(T.nilable(::Wand)) }
|
324
|
+
def reload_wand; end
|
321
325
|
end
|
322
326
|
|
323
327
|
module Wizard::CustomFinderMethods
|
@@ -339,6 +343,7 @@ end
|
|
339
343
|
|
340
344
|
class Wizard < ApplicationRecord
|
341
345
|
include Wizard::EnumInstanceMethods
|
346
|
+
include Wizard::GeneratedSerializedAttributeMethods
|
342
347
|
include Wizard::GeneratedAttributeMethods
|
343
348
|
include Wizard::GeneratedAssociationMethods
|
344
349
|
extend Wizard::CustomFinderMethods
|
@@ -452,6 +457,64 @@ class Wizard < ApplicationRecord
|
|
452
457
|
|
453
458
|
sig { params(value: T.nilable(Wizard::QuidditchPosition)).void }
|
454
459
|
def typed_quidditch_position=(value); end
|
460
|
+
|
461
|
+
class Broom < T::Enum
|
462
|
+
enums do
|
463
|
+
Nimbus = new(%q{nimbus})
|
464
|
+
Firebolt = new(%q{firebolt})
|
465
|
+
end
|
466
|
+
|
467
|
+
end
|
468
|
+
|
469
|
+
class EyeColor < T::Enum
|
470
|
+
enums do
|
471
|
+
Brown = new(%q{brown})
|
472
|
+
Green = new(%q{green})
|
473
|
+
Blue = new(%q{blue})
|
474
|
+
end
|
475
|
+
|
476
|
+
end
|
477
|
+
|
478
|
+
class HairColor < T::Enum
|
479
|
+
enums do
|
480
|
+
Brown = new(%q{brown})
|
481
|
+
Black = new(%q{black})
|
482
|
+
Blonde = new(%q{blonde})
|
483
|
+
end
|
484
|
+
|
485
|
+
end
|
486
|
+
|
487
|
+
class House < T::Enum
|
488
|
+
enums do
|
489
|
+
Gryffindor = new(%q{Gryffindor})
|
490
|
+
Hufflepuff = new(%q{Hufflepuff})
|
491
|
+
Ravenclaw = new(%q{Ravenclaw})
|
492
|
+
Slytherin = new(%q{Slytherin})
|
493
|
+
end
|
494
|
+
|
495
|
+
end
|
496
|
+
|
497
|
+
class ProfessorEnum < T::Enum
|
498
|
+
enums do
|
499
|
+
SeverusSnape = new(%q{Severus Snape})
|
500
|
+
MinervaMcGonagall = new(%q{Minerva McGonagall})
|
501
|
+
PomonaSprout = new(%q{Pomona Sprout})
|
502
|
+
FiliusFlitwick = new(%q{Filius Flitwick})
|
503
|
+
Hagrid = new(%q{Hagrid})
|
504
|
+
AlastorMadEyeMoody = new(%q{Alastor 'Mad-Eye' Moody})
|
505
|
+
end
|
506
|
+
|
507
|
+
end
|
508
|
+
|
509
|
+
class QuidditchPosition < T::Enum
|
510
|
+
enums do
|
511
|
+
Keeper = new(%q{keeper})
|
512
|
+
Seeker = new(%q{seeker})
|
513
|
+
Beater = new(%q{beater})
|
514
|
+
Chaser = new(%q{chaser})
|
515
|
+
end
|
516
|
+
|
517
|
+
end
|
455
518
|
end
|
456
519
|
|
457
520
|
class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -744,7 +807,7 @@ module Wizard::QueryMethodsReturningRelation
|
|
744
807
|
load: T.nilable(T::Boolean),
|
745
808
|
error_on_ignore: T.nilable(T::Boolean),
|
746
809
|
block: T.nilable(T.proc.params(e: Wizard::ActiveRecord_Relation).void)
|
747
|
-
).returns(
|
810
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
748
811
|
end
|
749
812
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
750
813
|
end
|
@@ -845,7 +908,7 @@ module Wizard::QueryMethodsReturningAssociationRelation
|
|
845
908
|
load: T.nilable(T::Boolean),
|
846
909
|
error_on_ignore: T.nilable(T::Boolean),
|
847
910
|
block: T.nilable(T.proc.params(e: Wizard::ActiveRecord_AssociationRelation).void)
|
848
|
-
).returns(
|
911
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
849
912
|
end
|
850
913
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
851
914
|
end
|
@@ -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
|
@@ -162,7 +186,7 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningRelation
|
|
162
186
|
load: T.nilable(T::Boolean),
|
163
187
|
error_on_ignore: T.nilable(T::Boolean),
|
164
188
|
block: T.nilable(T.proc.params(e: Wizard::HABTM_Subjects::ActiveRecord_Relation).void)
|
165
|
-
).returns(
|
189
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
166
190
|
end
|
167
191
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
168
192
|
end
|
@@ -263,7 +287,7 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
|
|
263
287
|
load: T.nilable(T::Boolean),
|
264
288
|
error_on_ignore: T.nilable(T::Boolean),
|
265
289
|
block: T.nilable(T.proc.params(e: Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation).void)
|
266
|
-
).returns(
|
290
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
267
291
|
end
|
268
292
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
269
293
|
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,71 +268,25 @@ 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::GeneratedAssociationMethods
|
292
272
|
sig { returns(T.nilable(T.untyped)) }
|
293
273
|
def school; end
|
294
274
|
|
275
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
276
|
+
def build_school(*args, &block); end
|
277
|
+
|
278
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
279
|
+
def create_school(*args, &block); end
|
280
|
+
|
281
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
282
|
+
def create_school!(*args, &block); end
|
283
|
+
|
295
284
|
sig { params(value: T.nilable(T.untyped)).void }
|
296
285
|
def school=(value); end
|
297
286
|
|
287
|
+
sig { returns(T.nilable(T.untyped)) }
|
288
|
+
def reload_school; end
|
289
|
+
|
298
290
|
sig { returns(ActiveRecord::Associations::CollectionProxy) }
|
299
291
|
def spell_books; end
|
300
292
|
|
@@ -310,8 +302,20 @@ module Wizard::GeneratedAssociationMethods
|
|
310
302
|
sig { returns(T.nilable(::Wand)) }
|
311
303
|
def wand; end
|
312
304
|
|
305
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
306
|
+
def build_wand(*args, &block); end
|
307
|
+
|
308
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
309
|
+
def create_wand(*args, &block); end
|
310
|
+
|
311
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
312
|
+
def create_wand!(*args, &block); end
|
313
|
+
|
313
314
|
sig { params(value: T.nilable(::Wand)).void }
|
314
315
|
def wand=(value); end
|
316
|
+
|
317
|
+
sig { returns(T.nilable(::Wand)) }
|
318
|
+
def reload_wand; end
|
315
319
|
end
|
316
320
|
|
317
321
|
module Wizard::CustomFinderMethods
|
@@ -333,6 +337,7 @@ end
|
|
333
337
|
|
334
338
|
class Wizard < ApplicationRecord
|
335
339
|
include Wizard::EnumInstanceMethods
|
340
|
+
include Wizard::GeneratedSerializedAttributeMethods
|
336
341
|
include Wizard::GeneratedAttributeMethods
|
337
342
|
include Wizard::GeneratedAssociationMethods
|
338
343
|
extend Wizard::CustomFinderMethods
|
@@ -446,6 +451,64 @@ class Wizard < ApplicationRecord
|
|
446
451
|
|
447
452
|
sig { params(value: T.nilable(Wizard::QuidditchPosition)).void }
|
448
453
|
def typed_quidditch_position=(value); end
|
454
|
+
|
455
|
+
class Broom < T::Enum
|
456
|
+
enums do
|
457
|
+
Nimbus = new(%q{nimbus})
|
458
|
+
Firebolt = new(%q{firebolt})
|
459
|
+
end
|
460
|
+
|
461
|
+
end
|
462
|
+
|
463
|
+
class EyeColor < T::Enum
|
464
|
+
enums do
|
465
|
+
Brown = new(%q{brown})
|
466
|
+
Green = new(%q{green})
|
467
|
+
Blue = new(%q{blue})
|
468
|
+
end
|
469
|
+
|
470
|
+
end
|
471
|
+
|
472
|
+
class HairColor < T::Enum
|
473
|
+
enums do
|
474
|
+
Brown = new(%q{brown})
|
475
|
+
Black = new(%q{black})
|
476
|
+
Blonde = new(%q{blonde})
|
477
|
+
end
|
478
|
+
|
479
|
+
end
|
480
|
+
|
481
|
+
class House < T::Enum
|
482
|
+
enums do
|
483
|
+
Gryffindor = new(%q{Gryffindor})
|
484
|
+
Hufflepuff = new(%q{Hufflepuff})
|
485
|
+
Ravenclaw = new(%q{Ravenclaw})
|
486
|
+
Slytherin = new(%q{Slytherin})
|
487
|
+
end
|
488
|
+
|
489
|
+
end
|
490
|
+
|
491
|
+
class ProfessorEnum < T::Enum
|
492
|
+
enums do
|
493
|
+
SeverusSnape = new(%q{Severus Snape})
|
494
|
+
MinervaMcGonagall = new(%q{Minerva McGonagall})
|
495
|
+
PomonaSprout = new(%q{Pomona Sprout})
|
496
|
+
FiliusFlitwick = new(%q{Filius Flitwick})
|
497
|
+
Hagrid = new(%q{Hagrid})
|
498
|
+
AlastorMadEyeMoody = new(%q{Alastor 'Mad-Eye' Moody})
|
499
|
+
end
|
500
|
+
|
501
|
+
end
|
502
|
+
|
503
|
+
class QuidditchPosition < T::Enum
|
504
|
+
enums do
|
505
|
+
Keeper = new(%q{keeper})
|
506
|
+
Seeker = new(%q{seeker})
|
507
|
+
Beater = new(%q{beater})
|
508
|
+
Chaser = new(%q{chaser})
|
509
|
+
end
|
510
|
+
|
511
|
+
end
|
449
512
|
end
|
450
513
|
|
451
514
|
class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -738,7 +801,7 @@ module Wizard::QueryMethodsReturningRelation
|
|
738
801
|
load: T.nilable(T::Boolean),
|
739
802
|
error_on_ignore: T.nilable(T::Boolean),
|
740
803
|
block: T.nilable(T.proc.params(e: Wizard::ActiveRecord_Relation).void)
|
741
|
-
).returns(
|
804
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
742
805
|
end
|
743
806
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
744
807
|
end
|
@@ -839,7 +902,7 @@ module Wizard::QueryMethodsReturningAssociationRelation
|
|
839
902
|
load: T.nilable(T::Boolean),
|
840
903
|
error_on_ignore: T.nilable(T::Boolean),
|
841
904
|
block: T.nilable(T.proc.params(e: Wizard::ActiveRecord_AssociationRelation).void)
|
842
|
-
).returns(
|
905
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
843
906
|
end
|
844
907
|
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
845
908
|
end
|