sorbet-rails 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/README.md +3 -3
- data/lib/bundled_rbi/typed_enum.rbi +7 -0
- data/lib/sorbet-rails.rb +0 -2
- data/lib/sorbet-rails/active_record_rbi_formatter.rb +301 -0
- data/lib/sorbet-rails/config.rb +0 -1
- data/lib/sorbet-rails/dependent_gem_rbis/activerecord.rbi +11 -0
- data/lib/sorbet-rails/deprecation.rb +5 -0
- data/lib/sorbet-rails/gem_plugins/active_flag_plugin.rb +0 -1
- data/lib/sorbet-rails/gem_plugins/paperclip_plugin.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +36 -8
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +20 -9
- data/lib/sorbet-rails/model_plugins/active_record_enum.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_named_scope.rb +15 -6
- data/lib/sorbet-rails/model_plugins/active_record_querying.rb +34 -3
- data/lib/sorbet-rails/model_plugins/active_storage_methods.rb +1 -1
- data/lib/sorbet-rails/model_plugins/base.rb +10 -0
- data/lib/sorbet-rails/model_plugins/enumerable_collections.rb +0 -50
- data/lib/sorbet-rails/model_plugins/plugins.rb +0 -3
- data/lib/sorbet-rails/model_rbi_formatter.rb +6 -10
- data/lib/sorbet-rails/model_utils.rb +83 -36
- data/lib/sorbet-rails/rails_mixins/generated_url_helpers.rb +2 -3
- data/lib/sorbet-rails/railtie.rb +0 -2
- data/lib/sorbet-rails/tasks/rails_rbi.rake +32 -24
- data/sorbet-rails.gemspec +2 -2
- data/spec/active_record_rbi_formatter_spec.rb +24 -0
- data/spec/generators/rails-template.rb +90 -6
- data/spec/generators/sorbet_test_cases.rb +204 -122
- data/spec/model_rbi_formatter_spec.rb +1 -1
- data/spec/rails_helper.rb +14 -1
- data/spec/rake_rails_rbi_active_record_spec.rb +21 -0
- data/spec/rake_rails_rbi_models_spec.rb +7 -0
- data/spec/sorbet_spec.rb +12 -1
- data/spec/support/v5.0/Gemfile.lock +8 -8
- data/spec/support/v5.0/app/models/headmaster.rb +8 -0
- data/spec/support/v5.0/app/models/school.rb +2 -0
- data/spec/support/v5.0/app/models/spell.rb +5 -0
- data/spec/support/v5.0/app/models/spell_book.rb +5 -0
- data/spec/support/v5.0/app/models/subject.rb +5 -0
- data/spec/support/v5.0/app/models/wizard.rb +6 -1
- data/spec/support/v5.0/db/migrate/20190620000010_add_subject.rb +8 -0
- data/spec/support/v5.0/db/migrate/20190620000011_add_subjects_wizards.rb +8 -0
- data/spec/support/v5.0/db/migrate/20190620000012_add_spell.rb +8 -0
- data/spec/support/v5.0/db/migrate/20190620000013_add_spells_spell_books.rb +8 -0
- data/spec/support/v5.0/db/migrate/20190620000014_create_headmasters.rb +9 -0
- data/spec/support/v5.0/db/schema.rb +28 -1
- data/spec/support/v5.0/lib/mythical_rbi_plugin.rb +1 -1
- data/spec/support/v5.0/sorbet_test_cases.rb +204 -122
- data/spec/support/v5.1/Gemfile.lock +8 -8
- data/spec/support/v5.1/app/models/headmaster.rb +8 -0
- data/spec/support/v5.1/app/models/school.rb +2 -0
- data/spec/support/v5.1/app/models/spell.rb +5 -0
- data/spec/support/v5.1/app/models/spell_book.rb +5 -0
- data/spec/support/v5.1/app/models/subject.rb +5 -0
- data/spec/support/v5.1/app/models/wizard.rb +6 -1
- data/spec/support/v5.1/db/migrate/20190620000010_add_subject.rb +8 -0
- data/spec/support/v5.1/db/migrate/20190620000011_add_subjects_wizards.rb +8 -0
- data/spec/support/v5.1/db/migrate/20190620000012_add_spell.rb +8 -0
- data/spec/support/v5.1/db/migrate/20190620000013_add_spells_spell_books.rb +8 -0
- data/spec/support/v5.1/db/migrate/20190620000014_create_headmasters.rb +9 -0
- data/spec/support/v5.1/db/schema.rb +28 -1
- data/spec/support/v5.1/lib/mythical_rbi_plugin.rb +1 -1
- data/spec/support/v5.1/sorbet_test_cases.rb +204 -122
- data/spec/support/v5.2/Gemfile +1 -1
- data/spec/support/v5.2/Gemfile.lock +9 -9
- data/spec/support/v5.2/app/models/headmaster.rb +8 -0
- data/spec/support/v5.2/app/models/school.rb +2 -0
- data/spec/support/v5.2/app/models/spell.rb +5 -0
- data/spec/support/v5.2/app/models/spell_book.rb +5 -0
- data/spec/support/v5.2/app/models/subject.rb +5 -0
- data/spec/support/v5.2/app/models/wizard.rb +5 -0
- data/spec/support/v5.2/config/puma.rb +3 -0
- data/spec/support/v5.2/db/migrate/20190620000010_add_subject.rb +8 -0
- data/spec/support/v5.2/db/migrate/20190620000011_add_subjects_wizards.rb +8 -0
- data/spec/support/v5.2/db/migrate/20190620000012_add_spell.rb +8 -0
- data/spec/support/v5.2/db/migrate/20190620000013_add_spells_spell_books.rb +8 -0
- data/spec/support/v5.2/db/migrate/20190620000014_create_headmasters.rb +9 -0
- data/spec/support/v5.2/db/schema.rb +28 -1
- data/spec/support/v5.2/lib/mythical_rbi_plugin.rb +1 -1
- data/spec/support/v5.2/sorbet_test_cases.rb +204 -122
- data/spec/support/v6.0/Gemfile.lock +8 -8
- data/spec/support/v6.0/app/models/headmaster.rb +8 -0
- data/spec/support/v6.0/app/models/school.rb +2 -0
- data/spec/support/v6.0/app/models/spell.rb +5 -0
- data/spec/support/v6.0/app/models/spell_book.rb +5 -0
- data/spec/support/v6.0/app/models/subject.rb +5 -0
- data/spec/support/v6.0/app/models/wizard.rb +6 -1
- data/spec/support/v6.0/db/migrate/20190620000010_add_subject.rb +8 -0
- data/spec/support/v6.0/db/migrate/20190620000011_add_subjects_wizards.rb +8 -0
- data/spec/support/v6.0/db/migrate/20190620000012_add_spell.rb +8 -0
- data/spec/support/v6.0/db/migrate/20190620000013_add_spells_spell_books.rb +8 -0
- data/spec/support/v6.0/db/migrate/20190620000014_create_headmasters.rb +9 -0
- data/spec/support/v6.0/db/schema.rb +28 -1
- data/spec/support/v6.0/lib/mythical_rbi_plugin.rb +1 -1
- data/spec/support/v6.0/sorbet_test_cases.rb +204 -122
- data/spec/test_data/v5.0/expected_active_record_base.rbi +113 -0
- data/spec/test_data/v5.0/expected_active_record_relation.rbi +199 -0
- data/spec/test_data/v5.0/expected_habtm_subjects.rbi +660 -0
- data/spec/test_data/v5.0/expected_habtm_wizards.rbi +660 -0
- data/spec/test_data/v5.0/expected_headmaster.rbi +304 -0
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +38 -401
- data/spec/test_data/v5.0/expected_potion.rbi +38 -401
- data/spec/test_data/v5.0/expected_robe.rbi +38 -403
- data/spec/test_data/v5.0/expected_schema_migration.rbi +38 -401
- data/spec/test_data/v5.0/expected_school.rbi +47 -401
- data/spec/test_data/v5.0/expected_spell.rbi +292 -0
- data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +295 -0
- data/spec/test_data/v5.0/expected_spell_book.rbi +86 -432
- data/spec/test_data/v5.0/expected_spell_book/habtm_spell_books.rbi +637 -0
- data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +295 -0
- data/spec/test_data/v5.0/expected_squib.rbi +122 -477
- data/spec/test_data/v5.0/expected_subject.rbi +292 -0
- data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +295 -0
- data/spec/test_data/v5.0/expected_wand.rbi +75 -442
- data/spec/test_data/v5.0/expected_wizard.rbi +144 -498
- data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +295 -0
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +138 -498
- data/spec/test_data/v5.1/expected_active_record_base.rbi +113 -0
- data/spec/test_data/v5.1/expected_active_record_relation.rbi +178 -0
- data/spec/test_data/v5.1/expected_habtm_subjects.rbi +672 -0
- data/spec/test_data/v5.1/expected_habtm_wizards.rbi +672 -0
- data/spec/test_data/v5.1/expected_headmaster.rbi +310 -0
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +38 -407
- data/spec/test_data/v5.1/expected_potion.rbi +38 -407
- data/spec/test_data/v5.1/expected_robe.rbi +38 -409
- data/spec/test_data/v5.1/expected_schema_migration.rbi +38 -407
- data/spec/test_data/v5.1/expected_school.rbi +47 -407
- data/spec/test_data/v5.1/expected_spell.rbi +298 -0
- data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +301 -0
- data/spec/test_data/v5.1/expected_spell_book.rbi +86 -438
- data/spec/test_data/v5.1/expected_spell_book/habtm_spell_books.rbi +649 -0
- data/spec/test_data/v5.1/expected_spell_book/habtm_spells.rbi +301 -0
- data/spec/test_data/v5.1/expected_squib.rbi +123 -484
- data/spec/test_data/v5.1/expected_subject.rbi +298 -0
- data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +301 -0
- data/spec/test_data/v5.1/expected_wand.rbi +75 -448
- data/spec/test_data/v5.1/expected_wizard.rbi +145 -505
- data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +301 -0
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +139 -505
- data/spec/test_data/v5.2/expected_active_record_base.rbi +113 -0
- data/spec/test_data/v5.2/expected_active_record_relation.rbi +175 -0
- data/spec/test_data/v5.2/expected_attachment.rbi +38 -407
- data/spec/test_data/v5.2/expected_blob.rbi +60 -426
- data/spec/test_data/v5.2/expected_habtm_subjects.rbi +672 -0
- data/spec/test_data/v5.2/expected_habtm_wizards.rbi +672 -0
- data/spec/test_data/v5.2/expected_headmaster.rbi +310 -0
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +38 -407
- data/spec/test_data/v5.2/expected_potion.rbi +38 -407
- data/spec/test_data/v5.2/expected_robe.rbi +38 -409
- data/spec/test_data/v5.2/expected_schema_migration.rbi +38 -407
- data/spec/test_data/v5.2/expected_school.rbi +47 -407
- data/spec/test_data/v5.2/expected_spell.rbi +298 -0
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +301 -0
- data/spec/test_data/v5.2/expected_spell_book.rbi +86 -438
- data/spec/test_data/v5.2/expected_spell_book/habtm_spell_books.rbi +649 -0
- data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +301 -0
- data/spec/test_data/v5.2/expected_squib.rbi +133 -488
- data/spec/test_data/v5.2/expected_subject.rbi +298 -0
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +301 -0
- data/spec/test_data/v5.2/expected_wand.rbi +75 -448
- data/spec/test_data/v5.2/expected_wizard.rbi +155 -509
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +301 -0
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +149 -509
- data/spec/test_data/v6.0/expected_active_record_base.rbi +113 -0
- data/spec/test_data/v6.0/expected_active_record_relation.rbi +175 -0
- data/spec/test_data/v6.0/expected_attachment.rbi +38 -431
- data/spec/test_data/v6.0/expected_blob.rbi +60 -450
- data/spec/test_data/v6.0/expected_habtm_subjects.rbi +720 -0
- data/spec/test_data/v6.0/expected_habtm_wizards.rbi +720 -0
- data/spec/test_data/v6.0/expected_headmaster.rbi +334 -0
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +38 -431
- data/spec/test_data/v6.0/expected_potion.rbi +38 -431
- data/spec/test_data/v6.0/expected_robe.rbi +38 -433
- data/spec/test_data/v6.0/expected_routes.rbi +14 -7
- data/spec/test_data/v6.0/expected_schema_migration.rbi +38 -431
- data/spec/test_data/v6.0/expected_school.rbi +47 -431
- data/spec/test_data/v6.0/expected_spell.rbi +322 -0
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +325 -0
- data/spec/test_data/v6.0/expected_spell_book.rbi +98 -474
- data/spec/test_data/v6.0/expected_spell_book/habtm_spell_books.rbi +697 -0
- data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +325 -0
- data/spec/test_data/v6.0/expected_squib.rbi +162 -541
- data/spec/test_data/v6.0/expected_subject.rbi +322 -0
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +325 -0
- data/spec/test_data/v6.0/expected_wand.rbi +91 -488
- data/spec/test_data/v6.0/expected_wizard.rbi +184 -562
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +325 -0
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +178 -562
- metadata +170 -24
- data/lib/bundled_rbi/active_record_base.rbi +0 -83
- data/lib/bundled_rbi/active_record_relation.rbi +0 -122
- data/lib/bundled_rbi/parameters.rbi +0 -28
- data/lib/sorbet-rails/custom_types/boolean_string.rb +0 -32
- data/lib/sorbet-rails/custom_types/integer_string.rb +0 -35
- data/lib/sorbet-rails/model_plugins/active_record_finder_methods.rb +0 -131
- data/lib/sorbet-rails/rails_mixins/custom_params_methods.rb +0 -46
- 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
- data/spec/support/v5.0/typed-override.yaml +0 -2
- data/spec/support/v5.1/typed-override.yaml +0 -2
- data/spec/support/v5.2/typed-override.yaml +0 -2
- data/spec/support/v6.0/typed-override.yaml +0 -2
@@ -0,0 +1,301 @@
|
|
1
|
+
# This is an autogenerated file for dynamic methods in SpellBook::HABTM_Spells
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[SpellBook::HABTM_Spells] to regenerate.
|
3
|
+
|
4
|
+
# typed: strong
|
5
|
+
module SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
6
|
+
sig { params(opts: T.untyped, rest: T.untyped).returns(T.self_type) }
|
7
|
+
def not(opts, *rest); end
|
8
|
+
end
|
9
|
+
|
10
|
+
module SpellBook::HABTM_Spells::GeneratedAttributeMethods
|
11
|
+
sig { returns(Integer) }
|
12
|
+
def spell_book_id; end
|
13
|
+
|
14
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
15
|
+
def spell_book_id=(value); end
|
16
|
+
|
17
|
+
sig { returns(T::Boolean) }
|
18
|
+
def spell_book_id?; end
|
19
|
+
|
20
|
+
sig { returns(Integer) }
|
21
|
+
def spell_id; end
|
22
|
+
|
23
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
24
|
+
def spell_id=(value); end
|
25
|
+
|
26
|
+
sig { returns(T::Boolean) }
|
27
|
+
def spell_id?; end
|
28
|
+
end
|
29
|
+
|
30
|
+
module SpellBook::HABTM_Spells::GeneratedAssociationMethods
|
31
|
+
sig { returns(T.nilable(::SpellBook)) }
|
32
|
+
def left_side; end
|
33
|
+
|
34
|
+
sig { params(value: T.nilable(::SpellBook)).void }
|
35
|
+
def left_side=(value); end
|
36
|
+
|
37
|
+
sig { returns(::Spell) }
|
38
|
+
def spell; end
|
39
|
+
|
40
|
+
sig { params(value: ::Spell).void }
|
41
|
+
def spell=(value); end
|
42
|
+
end
|
43
|
+
|
44
|
+
module SpellBook::HABTM_Spells::CustomFinderMethods
|
45
|
+
sig { params(limit: Integer).returns(T::Array[SpellBook::HABTM_Spells]) }
|
46
|
+
def first_n(limit); end
|
47
|
+
|
48
|
+
sig { params(limit: Integer).returns(T::Array[SpellBook::HABTM_Spells]) }
|
49
|
+
def last_n(limit); end
|
50
|
+
|
51
|
+
sig { params(args: T::Array[T.any(Integer, String)]).returns(T::Array[SpellBook::HABTM_Spells]) }
|
52
|
+
def find_n(*args); end
|
53
|
+
|
54
|
+
sig { params(id: Integer).returns(T.nilable(SpellBook::HABTM_Spells)) }
|
55
|
+
def find_by_id(id); end
|
56
|
+
|
57
|
+
sig { params(id: Integer).returns(SpellBook::HABTM_Spells) }
|
58
|
+
def find_by_id!(id); end
|
59
|
+
end
|
60
|
+
|
61
|
+
class SpellBook::HABTM_Spells < ActiveRecord::Base
|
62
|
+
include SpellBook::HABTM_Spells::GeneratedAttributeMethods
|
63
|
+
include SpellBook::HABTM_Spells::GeneratedAssociationMethods
|
64
|
+
extend SpellBook::HABTM_Spells::CustomFinderMethods
|
65
|
+
extend SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
66
|
+
RelationType = T.type_alias { T.any(SpellBook::HABTM_Spells::ActiveRecord_Relation, SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy, SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
67
|
+
end
|
68
|
+
|
69
|
+
module SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
70
|
+
sig { returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
71
|
+
def all; end
|
72
|
+
|
73
|
+
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
74
|
+
def unscoped(&block); end
|
75
|
+
|
76
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
77
|
+
def select(*args); end
|
78
|
+
|
79
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
80
|
+
def order(*args); end
|
81
|
+
|
82
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
83
|
+
def reorder(*args); end
|
84
|
+
|
85
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
86
|
+
def group(*args); end
|
87
|
+
|
88
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
89
|
+
def limit(*args); end
|
90
|
+
|
91
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
92
|
+
def offset(*args); end
|
93
|
+
|
94
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
95
|
+
def joins(*args); end
|
96
|
+
|
97
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
98
|
+
def left_joins(*args); end
|
99
|
+
|
100
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
101
|
+
def left_outer_joins(*args); end
|
102
|
+
|
103
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
104
|
+
def where(*args); end
|
105
|
+
|
106
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
107
|
+
def rewhere(*args); end
|
108
|
+
|
109
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
110
|
+
def preload(*args); end
|
111
|
+
|
112
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
113
|
+
def eager_load(*args); end
|
114
|
+
|
115
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
116
|
+
def includes(*args); end
|
117
|
+
|
118
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
119
|
+
def from(*args); end
|
120
|
+
|
121
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
122
|
+
def lock(*args); end
|
123
|
+
|
124
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
125
|
+
def readonly(*args); end
|
126
|
+
|
127
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
128
|
+
def or(*args); end
|
129
|
+
|
130
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
131
|
+
def having(*args); end
|
132
|
+
|
133
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
134
|
+
def create_with(*args); end
|
135
|
+
|
136
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
137
|
+
def distinct(*args); end
|
138
|
+
|
139
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
140
|
+
def references(*args); end
|
141
|
+
|
142
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
143
|
+
def none(*args); end
|
144
|
+
|
145
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
146
|
+
def unscope(*args); end
|
147
|
+
|
148
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
149
|
+
def merge(*args); end
|
150
|
+
|
151
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
152
|
+
def except(*args); end
|
153
|
+
|
154
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
155
|
+
def extending(*args, &block); end
|
156
|
+
|
157
|
+
sig do
|
158
|
+
params(
|
159
|
+
of: T.nilable(Integer),
|
160
|
+
start: T.nilable(Integer),
|
161
|
+
finish: T.nilable(Integer),
|
162
|
+
load: T.nilable(T::Boolean),
|
163
|
+
error_on_ignore: T.nilable(T::Boolean),
|
164
|
+
block: T.nilable(T.proc.params(e: SpellBook::HABTM_Spells::ActiveRecord_Relation).void)
|
165
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
166
|
+
end
|
167
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
168
|
+
end
|
169
|
+
|
170
|
+
module SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
171
|
+
sig { returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
172
|
+
def all; end
|
173
|
+
|
174
|
+
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
175
|
+
def unscoped(&block); end
|
176
|
+
|
177
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
178
|
+
def select(*args); end
|
179
|
+
|
180
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
181
|
+
def order(*args); end
|
182
|
+
|
183
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
184
|
+
def reorder(*args); end
|
185
|
+
|
186
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
187
|
+
def group(*args); end
|
188
|
+
|
189
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
190
|
+
def limit(*args); end
|
191
|
+
|
192
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
193
|
+
def offset(*args); end
|
194
|
+
|
195
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
196
|
+
def joins(*args); end
|
197
|
+
|
198
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
199
|
+
def left_joins(*args); end
|
200
|
+
|
201
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
202
|
+
def left_outer_joins(*args); end
|
203
|
+
|
204
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
205
|
+
def where(*args); end
|
206
|
+
|
207
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
208
|
+
def rewhere(*args); end
|
209
|
+
|
210
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
211
|
+
def preload(*args); end
|
212
|
+
|
213
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
214
|
+
def eager_load(*args); end
|
215
|
+
|
216
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
217
|
+
def includes(*args); end
|
218
|
+
|
219
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
220
|
+
def from(*args); end
|
221
|
+
|
222
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
223
|
+
def lock(*args); end
|
224
|
+
|
225
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
226
|
+
def readonly(*args); end
|
227
|
+
|
228
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
229
|
+
def or(*args); end
|
230
|
+
|
231
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
232
|
+
def having(*args); end
|
233
|
+
|
234
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
235
|
+
def create_with(*args); end
|
236
|
+
|
237
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
238
|
+
def distinct(*args); end
|
239
|
+
|
240
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
241
|
+
def references(*args); end
|
242
|
+
|
243
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
244
|
+
def none(*args); end
|
245
|
+
|
246
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
247
|
+
def unscope(*args); end
|
248
|
+
|
249
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
250
|
+
def merge(*args); end
|
251
|
+
|
252
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
253
|
+
def except(*args); end
|
254
|
+
|
255
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
256
|
+
def extending(*args, &block); end
|
257
|
+
|
258
|
+
sig do
|
259
|
+
params(
|
260
|
+
of: T.nilable(Integer),
|
261
|
+
start: T.nilable(Integer),
|
262
|
+
finish: T.nilable(Integer),
|
263
|
+
load: T.nilable(T::Boolean),
|
264
|
+
error_on_ignore: T.nilable(T::Boolean),
|
265
|
+
block: T.nilable(T.proc.params(e: SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation).void)
|
266
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
267
|
+
end
|
268
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
269
|
+
end
|
270
|
+
|
271
|
+
class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
|
272
|
+
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
273
|
+
include SpellBook::HABTM_Spells::CustomFinderMethods
|
274
|
+
include SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
275
|
+
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
276
|
+
end
|
277
|
+
|
278
|
+
class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
279
|
+
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
280
|
+
include SpellBook::HABTM_Spells::CustomFinderMethods
|
281
|
+
include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
282
|
+
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
283
|
+
end
|
284
|
+
|
285
|
+
class SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
286
|
+
include SpellBook::HABTM_Spells::CustomFinderMethods
|
287
|
+
include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
288
|
+
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
289
|
+
|
290
|
+
sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
|
291
|
+
def <<(*records); end
|
292
|
+
|
293
|
+
sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
|
294
|
+
def append(*records); end
|
295
|
+
|
296
|
+
sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
|
297
|
+
def push(*records); end
|
298
|
+
|
299
|
+
sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
|
300
|
+
def concat(*records); end
|
301
|
+
end
|
@@ -3,8 +3,6 @@
|
|
3
3
|
|
4
4
|
# typed: strong
|
5
5
|
module Squib::EnumInstanceMethods
|
6
|
-
extend T::Sig
|
7
|
-
|
8
6
|
sig { returns(T::Boolean) }
|
9
7
|
def broom_nimbus?; end
|
10
8
|
|
@@ -114,8 +112,6 @@ module Squib::ActiveRelation_WhereNot
|
|
114
112
|
end
|
115
113
|
|
116
114
|
module Squib::GeneratedAttributeMethods
|
117
|
-
extend T::Sig
|
118
|
-
|
119
115
|
sig { returns(T.nilable(String)) }
|
120
116
|
def broom; end
|
121
117
|
|
@@ -179,10 +175,10 @@ module Squib::GeneratedAttributeMethods
|
|
179
175
|
sig { returns(T::Boolean) }
|
180
176
|
def id?; end
|
181
177
|
|
182
|
-
sig { returns(
|
178
|
+
sig { returns(String) }
|
183
179
|
def name; end
|
184
180
|
|
185
|
-
sig { params(value: T.
|
181
|
+
sig { params(value: T.any(String, Symbol)).void }
|
186
182
|
def name=(value); end
|
187
183
|
|
188
184
|
sig { returns(T::Boolean) }
|
@@ -253,17 +249,21 @@ module Squib::GeneratedAttributeMethods
|
|
253
249
|
end
|
254
250
|
|
255
251
|
module Squib::GeneratedAssociationMethods
|
256
|
-
extend T::Sig
|
257
|
-
|
258
252
|
sig { returns(::ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy) }
|
259
253
|
def hats_attachments; end
|
260
254
|
|
255
|
+
sig { returns(T::Array[Integer]) }
|
256
|
+
def hats_attachment_ids; end
|
257
|
+
|
261
258
|
sig { params(value: T::Enumerable[::ActiveStorage::Attachment]).void }
|
262
259
|
def hats_attachments=(value); end
|
263
260
|
|
264
261
|
sig { returns(::ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy) }
|
265
262
|
def hats_blobs; end
|
266
263
|
|
264
|
+
sig { returns(T::Array[Integer]) }
|
265
|
+
def hats_blob_ids; end
|
266
|
+
|
267
267
|
sig { params(value: T::Enumerable[::ActiveStorage::Blob]).void }
|
268
268
|
def hats_blobs=(value); end
|
269
269
|
|
@@ -288,9 +288,21 @@ module Squib::GeneratedAssociationMethods
|
|
288
288
|
sig { returns(::SpellBook::ActiveRecord_Associations_CollectionProxy) }
|
289
289
|
def spell_books; end
|
290
290
|
|
291
|
+
sig { returns(T::Array[Integer]) }
|
292
|
+
def spell_book_ids; end
|
293
|
+
|
291
294
|
sig { params(value: T::Enumerable[::SpellBook]).void }
|
292
295
|
def spell_books=(value); end
|
293
296
|
|
297
|
+
sig { returns(::Subject::ActiveRecord_Associations_CollectionProxy) }
|
298
|
+
def subjects; end
|
299
|
+
|
300
|
+
sig { returns(T::Array[Integer]) }
|
301
|
+
def subject_ids; end
|
302
|
+
|
303
|
+
sig { params(value: T::Enumerable[::Subject]).void }
|
304
|
+
def subjects=(value); end
|
305
|
+
|
294
306
|
sig { returns(T.nilable(::Wand)) }
|
295
307
|
def wand; end
|
296
308
|
|
@@ -320,8 +332,7 @@ class Squib < Wizard
|
|
320
332
|
include Squib::GeneratedAttributeMethods
|
321
333
|
include Squib::GeneratedAssociationMethods
|
322
334
|
extend Squib::CustomFinderMethods
|
323
|
-
extend
|
324
|
-
extend T::Generic
|
335
|
+
extend Squib::QueryMethodsReturningRelation
|
325
336
|
RelationType = T.type_alias { T.any(Squib::ActiveRecord_Relation, Squib::ActiveRecord_Associations_CollectionProxy, Squib::ActiveRecord_AssociationRelation) }
|
326
337
|
|
327
338
|
sig { returns(T::Hash[T.any(String, Symbol), String]) }
|
@@ -401,119 +412,12 @@ class Squib < Wizard
|
|
401
412
|
|
402
413
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
403
414
|
def self.with_attached_school_photo(*args); end
|
404
|
-
|
405
|
-
sig { returns(Squib::ActiveRecord_Relation) }
|
406
|
-
def self.all; end
|
407
|
-
|
408
|
-
sig { params(block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
|
409
|
-
def self.unscoped(&block); end
|
410
|
-
|
411
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
412
|
-
def self.select(*args); end
|
413
|
-
|
414
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
415
|
-
def self.order(*args); end
|
416
|
-
|
417
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
418
|
-
def self.reorder(*args); end
|
419
|
-
|
420
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
421
|
-
def self.group(*args); end
|
422
|
-
|
423
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
424
|
-
def self.limit(*args); end
|
425
|
-
|
426
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
427
|
-
def self.offset(*args); end
|
428
|
-
|
429
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
430
|
-
def self.joins(*args); end
|
431
|
-
|
432
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
433
|
-
def self.left_joins(*args); end
|
434
|
-
|
435
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
436
|
-
def self.left_outer_joins(*args); end
|
437
|
-
|
438
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
439
|
-
def self.where(*args); end
|
440
|
-
|
441
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
442
|
-
def self.rewhere(*args); end
|
443
|
-
|
444
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
445
|
-
def self.preload(*args); end
|
446
|
-
|
447
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
448
|
-
def self.eager_load(*args); end
|
449
|
-
|
450
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
451
|
-
def self.includes(*args); end
|
452
|
-
|
453
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
454
|
-
def self.from(*args); end
|
455
|
-
|
456
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
457
|
-
def self.lock(*args); end
|
458
|
-
|
459
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
460
|
-
def self.readonly(*args); end
|
461
|
-
|
462
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
463
|
-
def self.or(*args); end
|
464
|
-
|
465
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
466
|
-
def self.having(*args); end
|
467
|
-
|
468
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
469
|
-
def self.create_with(*args); end
|
470
|
-
|
471
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
472
|
-
def self.distinct(*args); end
|
473
|
-
|
474
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
475
|
-
def self.references(*args); end
|
476
|
-
|
477
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
478
|
-
def self.none(*args); end
|
479
|
-
|
480
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
481
|
-
def self.unscope(*args); end
|
482
|
-
|
483
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
484
|
-
def self.merge(*args); end
|
485
|
-
|
486
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
487
|
-
def self.except(*args); end
|
488
|
-
|
489
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
|
490
|
-
def self.extending(*args, &block); end
|
491
|
-
|
492
|
-
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
493
|
-
def self.exists?(conditions = nil); end
|
494
|
-
|
495
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
496
|
-
def self.any?(*args); end
|
497
|
-
|
498
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
499
|
-
def self.many?(*args); end
|
500
|
-
|
501
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
502
|
-
def self.none?(*args); end
|
503
|
-
|
504
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
505
|
-
def self.one?(*args); end
|
506
|
-
|
507
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
508
|
-
def self.empty?(*args); end
|
509
415
|
end
|
510
416
|
|
511
417
|
class Squib::ActiveRecord_Relation < ActiveRecord::Relation
|
512
418
|
include Squib::ActiveRelation_WhereNot
|
513
419
|
include Squib::CustomFinderMethods
|
514
|
-
include
|
515
|
-
extend T::Sig
|
516
|
-
extend T::Generic
|
420
|
+
include Squib::QueryMethodsReturningRelation
|
517
421
|
Elem = type_member(fixed: Squib)
|
518
422
|
|
519
423
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
@@ -575,119 +479,78 @@ class Squib::ActiveRecord_Relation < ActiveRecord::Relation
|
|
575
479
|
|
576
480
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
577
481
|
def with_attached_school_photo(*args); end
|
482
|
+
end
|
578
483
|
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
586
|
-
def select(*args); end
|
587
|
-
|
588
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
589
|
-
def order(*args); end
|
590
|
-
|
591
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
592
|
-
def reorder(*args); end
|
593
|
-
|
594
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
595
|
-
def group(*args); end
|
596
|
-
|
597
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
598
|
-
def limit(*args); end
|
599
|
-
|
600
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
601
|
-
def offset(*args); end
|
602
|
-
|
603
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
604
|
-
def joins(*args); end
|
605
|
-
|
606
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
607
|
-
def left_joins(*args); end
|
608
|
-
|
609
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
610
|
-
def left_outer_joins(*args); end
|
611
|
-
|
612
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
613
|
-
def where(*args); end
|
614
|
-
|
615
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
616
|
-
def rewhere(*args); end
|
617
|
-
|
618
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
619
|
-
def preload(*args); end
|
620
|
-
|
621
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
622
|
-
def eager_load(*args); end
|
484
|
+
class Squib::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
485
|
+
include Squib::ActiveRelation_WhereNot
|
486
|
+
include Squib::CustomFinderMethods
|
487
|
+
include Squib::QueryMethodsReturningAssociationRelation
|
488
|
+
Elem = type_member(fixed: Squib)
|
623
489
|
|
624
|
-
sig { params(args: T.untyped).returns(Squib::
|
625
|
-
def
|
490
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
491
|
+
def Gryffindor(*args); end
|
626
492
|
|
627
|
-
sig { params(args: T.untyped).returns(Squib::
|
628
|
-
def
|
493
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
494
|
+
def Hagrid(*args); end
|
629
495
|
|
630
|
-
sig { params(args: T.untyped).returns(Squib::
|
631
|
-
def
|
496
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
497
|
+
def Hufflepuff(*args); end
|
632
498
|
|
633
|
-
sig { params(args: T.untyped).returns(Squib::
|
634
|
-
def
|
499
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
500
|
+
def Ravenclaw(*args); end
|
635
501
|
|
636
|
-
sig { params(args: T.untyped).returns(Squib::
|
637
|
-
def
|
502
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
503
|
+
def Slytherin(*args); end
|
638
504
|
|
639
|
-
sig { params(args: T.untyped).returns(Squib::
|
640
|
-
def
|
505
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
506
|
+
def black_hair(*args); end
|
641
507
|
|
642
|
-
sig { params(args: T.untyped).returns(Squib::
|
643
|
-
def
|
508
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
509
|
+
def blonde_hair(*args); end
|
644
510
|
|
645
|
-
sig { params(args: T.untyped).returns(Squib::
|
646
|
-
def
|
511
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
512
|
+
def broom_firebolt(*args); end
|
647
513
|
|
648
|
-
sig { params(args: T.untyped).returns(Squib::
|
649
|
-
def
|
514
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
515
|
+
def broom_nimbus(*args); end
|
650
516
|
|
651
|
-
sig { params(args: T.untyped).returns(Squib::
|
652
|
-
def
|
517
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
518
|
+
def brown_hair(*args); end
|
653
519
|
|
654
|
-
sig { params(args: T.untyped).returns(Squib::
|
655
|
-
def
|
520
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
521
|
+
def color_blue_eyes(*args); end
|
656
522
|
|
657
|
-
sig { params(args: T.untyped).returns(Squib::
|
658
|
-
def
|
523
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
524
|
+
def color_brown_eyes(*args); end
|
659
525
|
|
660
|
-
sig { params(args: T.untyped).returns(Squib::
|
661
|
-
def
|
526
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
527
|
+
def color_green_eyes(*args); end
|
662
528
|
|
663
|
-
sig { params(args: T.untyped
|
664
|
-
def
|
529
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
530
|
+
def quidditch_beater(*args); end
|
665
531
|
|
666
|
-
sig { params(
|
667
|
-
def
|
532
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
533
|
+
def quidditch_chaser(*args); end
|
668
534
|
|
669
|
-
sig { params(args: T.untyped).returns(
|
670
|
-
def
|
535
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
536
|
+
def quidditch_keeper(*args); end
|
671
537
|
|
672
|
-
sig { params(args: T.untyped).returns(
|
673
|
-
def
|
538
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
539
|
+
def quidditch_seeker(*args); end
|
674
540
|
|
675
|
-
sig { params(args: T.untyped).returns(
|
676
|
-
def
|
541
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
542
|
+
def recent(*args); end
|
677
543
|
|
678
|
-
sig { params(args: T.untyped).returns(
|
679
|
-
def
|
544
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
545
|
+
def with_attached_hats(*args); end
|
680
546
|
|
681
|
-
sig { params(args: T.untyped).returns(
|
682
|
-
def
|
547
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
548
|
+
def with_attached_school_photo(*args); end
|
683
549
|
end
|
684
550
|
|
685
|
-
class Squib::
|
686
|
-
include Squib::ActiveRelation_WhereNot
|
551
|
+
class Squib::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
687
552
|
include Squib::CustomFinderMethods
|
688
|
-
include
|
689
|
-
extend T::Sig
|
690
|
-
extend T::Generic
|
553
|
+
include Squib::QueryMethodsReturningAssociationRelation
|
691
554
|
Elem = type_member(fixed: Squib)
|
692
555
|
|
693
556
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
@@ -750,254 +613,125 @@ class Squib::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelatio
|
|
750
613
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
751
614
|
def with_attached_school_photo(*args); end
|
752
615
|
|
753
|
-
sig {
|
616
|
+
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
617
|
+
def <<(*records); end
|
618
|
+
|
619
|
+
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
620
|
+
def append(*records); end
|
621
|
+
|
622
|
+
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
623
|
+
def push(*records); end
|
624
|
+
|
625
|
+
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
626
|
+
def concat(*records); end
|
627
|
+
end
|
628
|
+
|
629
|
+
module Squib::QueryMethodsReturningRelation
|
630
|
+
sig { returns(Squib::ActiveRecord_Relation) }
|
754
631
|
def all; end
|
755
632
|
|
756
|
-
sig { params(block: T.nilable(T.proc.void)).returns(Squib::
|
633
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
|
757
634
|
def unscoped(&block); end
|
758
635
|
|
759
|
-
sig { params(args: T.untyped).returns(Squib::
|
636
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
760
637
|
def select(*args); end
|
761
638
|
|
762
|
-
sig { params(args: T.untyped).returns(Squib::
|
639
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
763
640
|
def order(*args); end
|
764
641
|
|
765
|
-
sig { params(args: T.untyped).returns(Squib::
|
642
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
766
643
|
def reorder(*args); end
|
767
644
|
|
768
|
-
sig { params(args: T.untyped).returns(Squib::
|
645
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
769
646
|
def group(*args); end
|
770
647
|
|
771
|
-
sig { params(args: T.untyped).returns(Squib::
|
648
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
772
649
|
def limit(*args); end
|
773
650
|
|
774
|
-
sig { params(args: T.untyped).returns(Squib::
|
651
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
775
652
|
def offset(*args); end
|
776
653
|
|
777
|
-
sig { params(args: T.untyped).returns(Squib::
|
654
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
778
655
|
def joins(*args); end
|
779
656
|
|
780
|
-
sig { params(args: T.untyped).returns(Squib::
|
657
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
781
658
|
def left_joins(*args); end
|
782
659
|
|
783
|
-
sig { params(args: T.untyped).returns(Squib::
|
660
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
784
661
|
def left_outer_joins(*args); end
|
785
662
|
|
786
|
-
sig { params(args: T.untyped).returns(Squib::
|
663
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
787
664
|
def where(*args); end
|
788
665
|
|
789
|
-
sig { params(args: T.untyped).returns(Squib::
|
666
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
790
667
|
def rewhere(*args); end
|
791
668
|
|
792
|
-
sig { params(args: T.untyped).returns(Squib::
|
669
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
793
670
|
def preload(*args); end
|
794
671
|
|
795
|
-
sig { params(args: T.untyped).returns(Squib::
|
672
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
796
673
|
def eager_load(*args); end
|
797
674
|
|
798
|
-
sig { params(args: T.untyped).returns(Squib::
|
675
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
799
676
|
def includes(*args); end
|
800
677
|
|
801
|
-
sig { params(args: T.untyped).returns(Squib::
|
678
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
802
679
|
def from(*args); end
|
803
680
|
|
804
|
-
sig { params(args: T.untyped).returns(Squib::
|
681
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
805
682
|
def lock(*args); end
|
806
683
|
|
807
|
-
sig { params(args: T.untyped).returns(Squib::
|
684
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
808
685
|
def readonly(*args); end
|
809
686
|
|
810
|
-
sig { params(args: T.untyped).returns(Squib::
|
687
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
811
688
|
def or(*args); end
|
812
689
|
|
813
|
-
sig { params(args: T.untyped).returns(Squib::
|
690
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
814
691
|
def having(*args); end
|
815
692
|
|
816
|
-
sig { params(args: T.untyped).returns(Squib::
|
693
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
817
694
|
def create_with(*args); end
|
818
695
|
|
819
|
-
sig { params(args: T.untyped).returns(Squib::
|
696
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
820
697
|
def distinct(*args); end
|
821
698
|
|
822
|
-
sig { params(args: T.untyped).returns(Squib::
|
699
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
823
700
|
def references(*args); end
|
824
701
|
|
825
|
-
sig { params(args: T.untyped).returns(Squib::
|
702
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
826
703
|
def none(*args); end
|
827
704
|
|
828
|
-
sig { params(args: T.untyped).returns(Squib::
|
705
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
829
706
|
def unscope(*args); end
|
830
707
|
|
831
|
-
sig { params(args: T.untyped).returns(Squib::
|
708
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
832
709
|
def merge(*args); end
|
833
710
|
|
834
|
-
sig { params(args: T.untyped).returns(Squib::
|
711
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
835
712
|
def except(*args); end
|
836
713
|
|
837
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::
|
714
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
|
838
715
|
def extending(*args, &block); end
|
839
716
|
|
840
|
-
sig { params(args: T.untyped).returns(Squib) }
|
841
|
-
def find(*args); end
|
842
|
-
|
843
|
-
sig { params(args: T.untyped).returns(T.nilable(Squib)) }
|
844
|
-
def find_by(*args); end
|
845
|
-
|
846
|
-
sig { params(args: T.untyped).returns(Squib) }
|
847
|
-
def find_by!(*args); end
|
848
|
-
|
849
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Squib).void)).returns(Squib) }
|
850
|
-
def find_or_initialize_by(attributes, &block); end
|
851
|
-
|
852
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Squib).void)).returns(Squib) }
|
853
|
-
def find_or_create_by(attributes, &block); end
|
854
|
-
|
855
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Squib).void)).returns(Squib) }
|
856
|
-
def find_or_create_by!(attributes, &block); end
|
857
|
-
|
858
|
-
sig { returns(T.nilable(Squib)) }
|
859
|
-
def first; end
|
860
|
-
|
861
|
-
sig { returns(Squib) }
|
862
|
-
def first!; end
|
863
|
-
|
864
|
-
sig { returns(T.nilable(Squib)) }
|
865
|
-
def second; end
|
866
|
-
|
867
|
-
sig { returns(Squib) }
|
868
|
-
def second!; end
|
869
|
-
|
870
|
-
sig { returns(T.nilable(Squib)) }
|
871
|
-
def third; end
|
872
|
-
|
873
|
-
sig { returns(Squib) }
|
874
|
-
def third!; end
|
875
|
-
|
876
|
-
sig { returns(T.nilable(Squib)) }
|
877
|
-
def third_to_last; end
|
878
|
-
|
879
|
-
sig { returns(Squib) }
|
880
|
-
def third_to_last!; end
|
881
|
-
|
882
|
-
sig { returns(T.nilable(Squib)) }
|
883
|
-
def second_to_last; end
|
884
|
-
|
885
|
-
sig { returns(Squib) }
|
886
|
-
def second_to_last!; end
|
887
|
-
|
888
|
-
sig { returns(T.nilable(Squib)) }
|
889
|
-
def last; end
|
890
|
-
|
891
|
-
sig { returns(Squib) }
|
892
|
-
def last!; end
|
893
|
-
|
894
|
-
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
895
|
-
def exists?(conditions = nil); end
|
896
|
-
|
897
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
898
|
-
def any?(*args); end
|
899
|
-
|
900
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
901
|
-
def many?(*args); end
|
902
|
-
|
903
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
904
|
-
def none?(*args); end
|
905
|
-
|
906
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
907
|
-
def one?(*args); end
|
908
|
-
|
909
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
910
|
-
def empty?(*args); end
|
911
|
-
|
912
|
-
sig { override.params(block: T.proc.params(e: Squib).void).returns(T::Array[Squib]) }
|
913
|
-
def each(&block); end
|
914
|
-
|
915
|
-
sig { params(level: T.nilable(Integer)).returns(T::Array[Squib]) }
|
916
|
-
def flatten(level); end
|
917
|
-
|
918
|
-
sig { returns(T::Array[Squib]) }
|
919
|
-
def to_a; end
|
920
|
-
|
921
717
|
sig do
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
718
|
+
params(
|
719
|
+
of: T.nilable(Integer),
|
720
|
+
start: T.nilable(Integer),
|
721
|
+
finish: T.nilable(Integer),
|
722
|
+
load: T.nilable(T::Boolean),
|
723
|
+
error_on_ignore: T.nilable(T::Boolean),
|
724
|
+
block: T.nilable(T.proc.params(e: Squib::ActiveRecord_Relation).void)
|
725
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
926
726
|
end
|
927
|
-
def
|
727
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
928
728
|
end
|
929
729
|
|
930
|
-
|
931
|
-
include Squib::CustomFinderMethods
|
932
|
-
include Enumerable
|
933
|
-
extend T::Sig
|
934
|
-
extend T::Generic
|
935
|
-
Elem = type_member(fixed: Squib)
|
936
|
-
|
937
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
938
|
-
def Gryffindor(*args); end
|
939
|
-
|
940
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
941
|
-
def Hagrid(*args); end
|
942
|
-
|
943
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
944
|
-
def Hufflepuff(*args); end
|
945
|
-
|
946
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
947
|
-
def Ravenclaw(*args); end
|
948
|
-
|
949
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
950
|
-
def Slytherin(*args); end
|
951
|
-
|
952
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
953
|
-
def black_hair(*args); end
|
954
|
-
|
955
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
956
|
-
def blonde_hair(*args); end
|
957
|
-
|
958
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
959
|
-
def broom_firebolt(*args); end
|
960
|
-
|
961
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
962
|
-
def broom_nimbus(*args); end
|
963
|
-
|
964
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
965
|
-
def brown_hair(*args); end
|
966
|
-
|
967
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
968
|
-
def color_blue_eyes(*args); end
|
969
|
-
|
970
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
971
|
-
def color_brown_eyes(*args); end
|
972
|
-
|
973
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
974
|
-
def color_green_eyes(*args); end
|
975
|
-
|
976
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
977
|
-
def quidditch_beater(*args); end
|
978
|
-
|
979
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
980
|
-
def quidditch_chaser(*args); end
|
981
|
-
|
982
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
983
|
-
def quidditch_keeper(*args); end
|
984
|
-
|
985
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
986
|
-
def quidditch_seeker(*args); end
|
987
|
-
|
988
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
989
|
-
def recent(*args); end
|
990
|
-
|
991
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
992
|
-
def with_attached_hats(*args); end
|
993
|
-
|
994
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
995
|
-
def with_attached_school_photo(*args); end
|
996
|
-
|
730
|
+
module Squib::QueryMethodsReturningAssociationRelation
|
997
731
|
sig { returns(Squib::ActiveRecord_AssociationRelation) }
|
998
732
|
def all; end
|
999
733
|
|
1000
|
-
sig { params(block: T.nilable(T.proc.void)).returns(Squib::
|
734
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
|
1001
735
|
def unscoped(&block); end
|
1002
736
|
|
1003
737
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
@@ -1081,104 +815,15 @@ class Squib::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associati
|
|
1081
815
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_AssociationRelation) }
|
1082
816
|
def extending(*args, &block); end
|
1083
817
|
|
1084
|
-
sig { params(args: T.untyped).returns(Squib) }
|
1085
|
-
def find(*args); end
|
1086
|
-
|
1087
|
-
sig { params(args: T.untyped).returns(T.nilable(Squib)) }
|
1088
|
-
def find_by(*args); end
|
1089
|
-
|
1090
|
-
sig { params(args: T.untyped).returns(Squib) }
|
1091
|
-
def find_by!(*args); end
|
1092
|
-
|
1093
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Squib).void)).returns(Squib) }
|
1094
|
-
def find_or_initialize_by(attributes, &block); end
|
1095
|
-
|
1096
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Squib).void)).returns(Squib) }
|
1097
|
-
def find_or_create_by(attributes, &block); end
|
1098
|
-
|
1099
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Squib).void)).returns(Squib) }
|
1100
|
-
def find_or_create_by!(attributes, &block); end
|
1101
|
-
|
1102
|
-
sig { returns(T.nilable(Squib)) }
|
1103
|
-
def first; end
|
1104
|
-
|
1105
|
-
sig { returns(Squib) }
|
1106
|
-
def first!; end
|
1107
|
-
|
1108
|
-
sig { returns(T.nilable(Squib)) }
|
1109
|
-
def second; end
|
1110
|
-
|
1111
|
-
sig { returns(Squib) }
|
1112
|
-
def second!; end
|
1113
|
-
|
1114
|
-
sig { returns(T.nilable(Squib)) }
|
1115
|
-
def third; end
|
1116
|
-
|
1117
|
-
sig { returns(Squib) }
|
1118
|
-
def third!; end
|
1119
|
-
|
1120
|
-
sig { returns(T.nilable(Squib)) }
|
1121
|
-
def third_to_last; end
|
1122
|
-
|
1123
|
-
sig { returns(Squib) }
|
1124
|
-
def third_to_last!; end
|
1125
|
-
|
1126
|
-
sig { returns(T.nilable(Squib)) }
|
1127
|
-
def second_to_last; end
|
1128
|
-
|
1129
|
-
sig { returns(Squib) }
|
1130
|
-
def second_to_last!; end
|
1131
|
-
|
1132
|
-
sig { returns(T.nilable(Squib)) }
|
1133
|
-
def last; end
|
1134
|
-
|
1135
|
-
sig { returns(Squib) }
|
1136
|
-
def last!; end
|
1137
|
-
|
1138
|
-
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
1139
|
-
def exists?(conditions = nil); end
|
1140
|
-
|
1141
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
1142
|
-
def any?(*args); end
|
1143
|
-
|
1144
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
1145
|
-
def many?(*args); end
|
1146
|
-
|
1147
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
1148
|
-
def none?(*args); end
|
1149
|
-
|
1150
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
1151
|
-
def one?(*args); end
|
1152
|
-
|
1153
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
1154
|
-
def empty?(*args); end
|
1155
|
-
|
1156
|
-
sig { override.params(block: T.proc.params(e: Squib).void).returns(T::Array[Squib]) }
|
1157
|
-
def each(&block); end
|
1158
|
-
|
1159
|
-
sig { params(level: T.nilable(Integer)).returns(T::Array[Squib]) }
|
1160
|
-
def flatten(level); end
|
1161
|
-
|
1162
|
-
sig { returns(T::Array[Squib]) }
|
1163
|
-
def to_a; end
|
1164
|
-
|
1165
818
|
sig do
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
819
|
+
params(
|
820
|
+
of: T.nilable(Integer),
|
821
|
+
start: T.nilable(Integer),
|
822
|
+
finish: T.nilable(Integer),
|
823
|
+
load: T.nilable(T::Boolean),
|
824
|
+
error_on_ignore: T.nilable(T::Boolean),
|
825
|
+
block: T.nilable(T.proc.params(e: Squib::ActiveRecord_AssociationRelation).void)
|
826
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
1170
827
|
end
|
1171
|
-
def
|
1172
|
-
|
1173
|
-
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
1174
|
-
def <<(*records); end
|
1175
|
-
|
1176
|
-
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
1177
|
-
def append(*records); end
|
1178
|
-
|
1179
|
-
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
1180
|
-
def push(*records); end
|
1181
|
-
|
1182
|
-
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
1183
|
-
def concat(*records); end
|
828
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
1184
829
|
end
|