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,322 @@
|
|
1
|
+
# This is an autogenerated file for dynamic methods in Spell
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[Spell] to regenerate.
|
3
|
+
|
4
|
+
# typed: strong
|
5
|
+
module Spell::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 Spell::GeneratedAttributeMethods
|
11
|
+
sig { returns(Integer) }
|
12
|
+
def id; end
|
13
|
+
|
14
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
15
|
+
def id=(value); end
|
16
|
+
|
17
|
+
sig { returns(T::Boolean) }
|
18
|
+
def id?; end
|
19
|
+
|
20
|
+
sig { returns(T.nilable(String)) }
|
21
|
+
def name; end
|
22
|
+
|
23
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
24
|
+
def name=(value); end
|
25
|
+
|
26
|
+
sig { returns(T::Boolean) }
|
27
|
+
def name?; end
|
28
|
+
end
|
29
|
+
|
30
|
+
module Spell::GeneratedAssociationMethods
|
31
|
+
sig { returns(::SpellBook::ActiveRecord_Associations_CollectionProxy) }
|
32
|
+
def spell_books; end
|
33
|
+
|
34
|
+
sig { returns(T::Array[Integer]) }
|
35
|
+
def spell_book_ids; end
|
36
|
+
|
37
|
+
sig { params(value: T::Enumerable[::SpellBook]).void }
|
38
|
+
def spell_books=(value); end
|
39
|
+
end
|
40
|
+
|
41
|
+
module Spell::CustomFinderMethods
|
42
|
+
sig { params(limit: Integer).returns(T::Array[Spell]) }
|
43
|
+
def first_n(limit); end
|
44
|
+
|
45
|
+
sig { params(limit: Integer).returns(T::Array[Spell]) }
|
46
|
+
def last_n(limit); end
|
47
|
+
|
48
|
+
sig { params(args: T::Array[T.any(Integer, String)]).returns(T::Array[Spell]) }
|
49
|
+
def find_n(*args); end
|
50
|
+
|
51
|
+
sig { params(id: Integer).returns(T.nilable(Spell)) }
|
52
|
+
def find_by_id(id); end
|
53
|
+
|
54
|
+
sig { params(id: Integer).returns(Spell) }
|
55
|
+
def find_by_id!(id); end
|
56
|
+
end
|
57
|
+
|
58
|
+
class Spell < ApplicationRecord
|
59
|
+
include Spell::GeneratedAttributeMethods
|
60
|
+
include Spell::GeneratedAssociationMethods
|
61
|
+
extend Spell::CustomFinderMethods
|
62
|
+
extend Spell::QueryMethodsReturningRelation
|
63
|
+
RelationType = T.type_alias { T.any(Spell::ActiveRecord_Relation, Spell::ActiveRecord_Associations_CollectionProxy, Spell::ActiveRecord_AssociationRelation) }
|
64
|
+
end
|
65
|
+
|
66
|
+
module Spell::QueryMethodsReturningRelation
|
67
|
+
sig { returns(Spell::ActiveRecord_Relation) }
|
68
|
+
def all; end
|
69
|
+
|
70
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_Relation) }
|
71
|
+
def unscoped(&block); end
|
72
|
+
|
73
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
74
|
+
def select(*args); end
|
75
|
+
|
76
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
77
|
+
def reselect(*args); end
|
78
|
+
|
79
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
80
|
+
def order(*args); end
|
81
|
+
|
82
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
83
|
+
def reorder(*args); end
|
84
|
+
|
85
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
86
|
+
def group(*args); end
|
87
|
+
|
88
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
89
|
+
def limit(*args); end
|
90
|
+
|
91
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
92
|
+
def offset(*args); end
|
93
|
+
|
94
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
95
|
+
def joins(*args); end
|
96
|
+
|
97
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
98
|
+
def left_joins(*args); end
|
99
|
+
|
100
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
101
|
+
def left_outer_joins(*args); end
|
102
|
+
|
103
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
104
|
+
def where(*args); end
|
105
|
+
|
106
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
107
|
+
def rewhere(*args); end
|
108
|
+
|
109
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
110
|
+
def preload(*args); end
|
111
|
+
|
112
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
113
|
+
def extract_associated(*args); end
|
114
|
+
|
115
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
116
|
+
def eager_load(*args); end
|
117
|
+
|
118
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
119
|
+
def includes(*args); end
|
120
|
+
|
121
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
122
|
+
def from(*args); end
|
123
|
+
|
124
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
125
|
+
def lock(*args); end
|
126
|
+
|
127
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
128
|
+
def readonly(*args); end
|
129
|
+
|
130
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
131
|
+
def or(*args); end
|
132
|
+
|
133
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
134
|
+
def having(*args); end
|
135
|
+
|
136
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
137
|
+
def create_with(*args); end
|
138
|
+
|
139
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
140
|
+
def distinct(*args); end
|
141
|
+
|
142
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
143
|
+
def references(*args); end
|
144
|
+
|
145
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
146
|
+
def none(*args); end
|
147
|
+
|
148
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
149
|
+
def unscope(*args); end
|
150
|
+
|
151
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
152
|
+
def optimizer_hints(*args); end
|
153
|
+
|
154
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
155
|
+
def merge(*args); end
|
156
|
+
|
157
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
158
|
+
def except(*args); end
|
159
|
+
|
160
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
161
|
+
def only(*args); end
|
162
|
+
|
163
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_Relation) }
|
164
|
+
def extending(*args, &block); end
|
165
|
+
|
166
|
+
sig do
|
167
|
+
params(
|
168
|
+
of: T.nilable(Integer),
|
169
|
+
start: T.nilable(Integer),
|
170
|
+
finish: T.nilable(Integer),
|
171
|
+
load: T.nilable(T::Boolean),
|
172
|
+
error_on_ignore: T.nilable(T::Boolean),
|
173
|
+
block: T.nilable(T.proc.params(e: Spell::ActiveRecord_Relation).void)
|
174
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
175
|
+
end
|
176
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
177
|
+
end
|
178
|
+
|
179
|
+
module Spell::QueryMethodsReturningAssociationRelation
|
180
|
+
sig { returns(Spell::ActiveRecord_AssociationRelation) }
|
181
|
+
def all; end
|
182
|
+
|
183
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_Relation) }
|
184
|
+
def unscoped(&block); end
|
185
|
+
|
186
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
187
|
+
def select(*args); end
|
188
|
+
|
189
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
190
|
+
def reselect(*args); end
|
191
|
+
|
192
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
193
|
+
def order(*args); end
|
194
|
+
|
195
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
196
|
+
def reorder(*args); end
|
197
|
+
|
198
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
199
|
+
def group(*args); end
|
200
|
+
|
201
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
202
|
+
def limit(*args); end
|
203
|
+
|
204
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
205
|
+
def offset(*args); end
|
206
|
+
|
207
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
208
|
+
def joins(*args); end
|
209
|
+
|
210
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
211
|
+
def left_joins(*args); end
|
212
|
+
|
213
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
214
|
+
def left_outer_joins(*args); end
|
215
|
+
|
216
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
217
|
+
def where(*args); end
|
218
|
+
|
219
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
220
|
+
def rewhere(*args); end
|
221
|
+
|
222
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
223
|
+
def preload(*args); end
|
224
|
+
|
225
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
226
|
+
def extract_associated(*args); end
|
227
|
+
|
228
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
229
|
+
def eager_load(*args); end
|
230
|
+
|
231
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
232
|
+
def includes(*args); end
|
233
|
+
|
234
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
235
|
+
def from(*args); end
|
236
|
+
|
237
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
238
|
+
def lock(*args); end
|
239
|
+
|
240
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
241
|
+
def readonly(*args); end
|
242
|
+
|
243
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
244
|
+
def or(*args); end
|
245
|
+
|
246
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
247
|
+
def having(*args); end
|
248
|
+
|
249
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
250
|
+
def create_with(*args); end
|
251
|
+
|
252
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
253
|
+
def distinct(*args); end
|
254
|
+
|
255
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
256
|
+
def references(*args); end
|
257
|
+
|
258
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
259
|
+
def none(*args); end
|
260
|
+
|
261
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
262
|
+
def unscope(*args); end
|
263
|
+
|
264
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
265
|
+
def optimizer_hints(*args); end
|
266
|
+
|
267
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
268
|
+
def merge(*args); end
|
269
|
+
|
270
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
271
|
+
def except(*args); end
|
272
|
+
|
273
|
+
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
274
|
+
def only(*args); end
|
275
|
+
|
276
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_AssociationRelation) }
|
277
|
+
def extending(*args, &block); end
|
278
|
+
|
279
|
+
sig do
|
280
|
+
params(
|
281
|
+
of: T.nilable(Integer),
|
282
|
+
start: T.nilable(Integer),
|
283
|
+
finish: T.nilable(Integer),
|
284
|
+
load: T.nilable(T::Boolean),
|
285
|
+
error_on_ignore: T.nilable(T::Boolean),
|
286
|
+
block: T.nilable(T.proc.params(e: Spell::ActiveRecord_AssociationRelation).void)
|
287
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
288
|
+
end
|
289
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
290
|
+
end
|
291
|
+
|
292
|
+
class Spell::ActiveRecord_Relation < ActiveRecord::Relation
|
293
|
+
include Spell::ActiveRelation_WhereNot
|
294
|
+
include Spell::CustomFinderMethods
|
295
|
+
include Spell::QueryMethodsReturningRelation
|
296
|
+
Elem = type_member(fixed: Spell)
|
297
|
+
end
|
298
|
+
|
299
|
+
class Spell::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
300
|
+
include Spell::ActiveRelation_WhereNot
|
301
|
+
include Spell::CustomFinderMethods
|
302
|
+
include Spell::QueryMethodsReturningAssociationRelation
|
303
|
+
Elem = type_member(fixed: Spell)
|
304
|
+
end
|
305
|
+
|
306
|
+
class Spell::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
307
|
+
include Spell::CustomFinderMethods
|
308
|
+
include Spell::QueryMethodsReturningAssociationRelation
|
309
|
+
Elem = type_member(fixed: Spell)
|
310
|
+
|
311
|
+
sig { params(records: T.any(Spell, T::Array[Spell])).returns(T.self_type) }
|
312
|
+
def <<(*records); end
|
313
|
+
|
314
|
+
sig { params(records: T.any(Spell, T::Array[Spell])).returns(T.self_type) }
|
315
|
+
def append(*records); end
|
316
|
+
|
317
|
+
sig { params(records: T.any(Spell, T::Array[Spell])).returns(T.self_type) }
|
318
|
+
def push(*records); end
|
319
|
+
|
320
|
+
sig { params(records: T.any(Spell, T::Array[Spell])).returns(T.self_type) }
|
321
|
+
def concat(*records); end
|
322
|
+
end
|
@@ -0,0 +1,325 @@
|
|
1
|
+
# This is an autogenerated file for dynamic methods in Spell::HABTM_SpellBooks
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[Spell::HABTM_SpellBooks] to regenerate.
|
3
|
+
|
4
|
+
# typed: strong
|
5
|
+
module Spell::HABTM_SpellBooks::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 Spell::HABTM_SpellBooks::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 Spell::HABTM_SpellBooks::GeneratedAssociationMethods
|
31
|
+
sig { returns(T.nilable(::Spell)) }
|
32
|
+
def left_side; end
|
33
|
+
|
34
|
+
sig { params(value: T.nilable(::Spell)).void }
|
35
|
+
def left_side=(value); end
|
36
|
+
|
37
|
+
sig { returns(::SpellBook) }
|
38
|
+
def spell_book; end
|
39
|
+
|
40
|
+
sig { params(value: ::SpellBook).void }
|
41
|
+
def spell_book=(value); end
|
42
|
+
end
|
43
|
+
|
44
|
+
module Spell::HABTM_SpellBooks::CustomFinderMethods
|
45
|
+
sig { params(limit: Integer).returns(T::Array[Spell::HABTM_SpellBooks]) }
|
46
|
+
def first_n(limit); end
|
47
|
+
|
48
|
+
sig { params(limit: Integer).returns(T::Array[Spell::HABTM_SpellBooks]) }
|
49
|
+
def last_n(limit); end
|
50
|
+
|
51
|
+
sig { params(args: T::Array[T.any(Integer, String)]).returns(T::Array[Spell::HABTM_SpellBooks]) }
|
52
|
+
def find_n(*args); end
|
53
|
+
|
54
|
+
sig { params(id: Integer).returns(T.nilable(Spell::HABTM_SpellBooks)) }
|
55
|
+
def find_by_id(id); end
|
56
|
+
|
57
|
+
sig { params(id: Integer).returns(Spell::HABTM_SpellBooks) }
|
58
|
+
def find_by_id!(id); end
|
59
|
+
end
|
60
|
+
|
61
|
+
class Spell::HABTM_SpellBooks < ActiveRecord::Base
|
62
|
+
include Spell::HABTM_SpellBooks::GeneratedAttributeMethods
|
63
|
+
include Spell::HABTM_SpellBooks::GeneratedAssociationMethods
|
64
|
+
extend Spell::HABTM_SpellBooks::CustomFinderMethods
|
65
|
+
extend Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
|
66
|
+
RelationType = T.type_alias { T.any(Spell::HABTM_SpellBooks::ActiveRecord_Relation, Spell::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy, Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
67
|
+
end
|
68
|
+
|
69
|
+
module Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
|
70
|
+
sig { returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
71
|
+
def all; end
|
72
|
+
|
73
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
74
|
+
def unscoped(&block); end
|
75
|
+
|
76
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
77
|
+
def select(*args); end
|
78
|
+
|
79
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
80
|
+
def reselect(*args); end
|
81
|
+
|
82
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
83
|
+
def order(*args); end
|
84
|
+
|
85
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
86
|
+
def reorder(*args); end
|
87
|
+
|
88
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
89
|
+
def group(*args); end
|
90
|
+
|
91
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
92
|
+
def limit(*args); end
|
93
|
+
|
94
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
95
|
+
def offset(*args); end
|
96
|
+
|
97
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
98
|
+
def joins(*args); end
|
99
|
+
|
100
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
101
|
+
def left_joins(*args); end
|
102
|
+
|
103
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
104
|
+
def left_outer_joins(*args); end
|
105
|
+
|
106
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
107
|
+
def where(*args); end
|
108
|
+
|
109
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
110
|
+
def rewhere(*args); end
|
111
|
+
|
112
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
113
|
+
def preload(*args); end
|
114
|
+
|
115
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
116
|
+
def extract_associated(*args); end
|
117
|
+
|
118
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
119
|
+
def eager_load(*args); end
|
120
|
+
|
121
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
122
|
+
def includes(*args); end
|
123
|
+
|
124
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
125
|
+
def from(*args); end
|
126
|
+
|
127
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
128
|
+
def lock(*args); end
|
129
|
+
|
130
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
131
|
+
def readonly(*args); end
|
132
|
+
|
133
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
134
|
+
def or(*args); end
|
135
|
+
|
136
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
137
|
+
def having(*args); end
|
138
|
+
|
139
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
140
|
+
def create_with(*args); end
|
141
|
+
|
142
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
143
|
+
def distinct(*args); end
|
144
|
+
|
145
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
146
|
+
def references(*args); end
|
147
|
+
|
148
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
149
|
+
def none(*args); end
|
150
|
+
|
151
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
152
|
+
def unscope(*args); end
|
153
|
+
|
154
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
155
|
+
def optimizer_hints(*args); end
|
156
|
+
|
157
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
158
|
+
def merge(*args); end
|
159
|
+
|
160
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
161
|
+
def except(*args); end
|
162
|
+
|
163
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
164
|
+
def only(*args); end
|
165
|
+
|
166
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
167
|
+
def extending(*args, &block); end
|
168
|
+
|
169
|
+
sig do
|
170
|
+
params(
|
171
|
+
of: T.nilable(Integer),
|
172
|
+
start: T.nilable(Integer),
|
173
|
+
finish: T.nilable(Integer),
|
174
|
+
load: T.nilable(T::Boolean),
|
175
|
+
error_on_ignore: T.nilable(T::Boolean),
|
176
|
+
block: T.nilable(T.proc.params(e: Spell::HABTM_SpellBooks::ActiveRecord_Relation).void)
|
177
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
178
|
+
end
|
179
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
180
|
+
end
|
181
|
+
|
182
|
+
module Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
|
183
|
+
sig { returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
184
|
+
def all; end
|
185
|
+
|
186
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
187
|
+
def unscoped(&block); end
|
188
|
+
|
189
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
190
|
+
def select(*args); end
|
191
|
+
|
192
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
193
|
+
def reselect(*args); end
|
194
|
+
|
195
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
196
|
+
def order(*args); end
|
197
|
+
|
198
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
199
|
+
def reorder(*args); end
|
200
|
+
|
201
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
202
|
+
def group(*args); end
|
203
|
+
|
204
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
205
|
+
def limit(*args); end
|
206
|
+
|
207
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
208
|
+
def offset(*args); end
|
209
|
+
|
210
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
211
|
+
def joins(*args); end
|
212
|
+
|
213
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
214
|
+
def left_joins(*args); end
|
215
|
+
|
216
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
217
|
+
def left_outer_joins(*args); end
|
218
|
+
|
219
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
220
|
+
def where(*args); end
|
221
|
+
|
222
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
223
|
+
def rewhere(*args); end
|
224
|
+
|
225
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
226
|
+
def preload(*args); end
|
227
|
+
|
228
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
229
|
+
def extract_associated(*args); end
|
230
|
+
|
231
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
232
|
+
def eager_load(*args); end
|
233
|
+
|
234
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
235
|
+
def includes(*args); end
|
236
|
+
|
237
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
238
|
+
def from(*args); end
|
239
|
+
|
240
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
241
|
+
def lock(*args); end
|
242
|
+
|
243
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
244
|
+
def readonly(*args); end
|
245
|
+
|
246
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
247
|
+
def or(*args); end
|
248
|
+
|
249
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
250
|
+
def having(*args); end
|
251
|
+
|
252
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
253
|
+
def create_with(*args); end
|
254
|
+
|
255
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
256
|
+
def distinct(*args); end
|
257
|
+
|
258
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
259
|
+
def references(*args); end
|
260
|
+
|
261
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
262
|
+
def none(*args); end
|
263
|
+
|
264
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
265
|
+
def unscope(*args); end
|
266
|
+
|
267
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
268
|
+
def optimizer_hints(*args); end
|
269
|
+
|
270
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
271
|
+
def merge(*args); end
|
272
|
+
|
273
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
274
|
+
def except(*args); end
|
275
|
+
|
276
|
+
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
277
|
+
def only(*args); end
|
278
|
+
|
279
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
280
|
+
def extending(*args, &block); end
|
281
|
+
|
282
|
+
sig do
|
283
|
+
params(
|
284
|
+
of: T.nilable(Integer),
|
285
|
+
start: T.nilable(Integer),
|
286
|
+
finish: T.nilable(Integer),
|
287
|
+
load: T.nilable(T::Boolean),
|
288
|
+
error_on_ignore: T.nilable(T::Boolean),
|
289
|
+
block: T.nilable(T.proc.params(e: Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation).void)
|
290
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
291
|
+
end
|
292
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
293
|
+
end
|
294
|
+
|
295
|
+
class Spell::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relation
|
296
|
+
include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
|
297
|
+
include Spell::HABTM_SpellBooks::CustomFinderMethods
|
298
|
+
include Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
|
299
|
+
Elem = type_member(fixed: Spell::HABTM_SpellBooks)
|
300
|
+
end
|
301
|
+
|
302
|
+
class Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
303
|
+
include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
|
304
|
+
include Spell::HABTM_SpellBooks::CustomFinderMethods
|
305
|
+
include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
|
306
|
+
Elem = type_member(fixed: Spell::HABTM_SpellBooks)
|
307
|
+
end
|
308
|
+
|
309
|
+
class Spell::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
310
|
+
include Spell::HABTM_SpellBooks::CustomFinderMethods
|
311
|
+
include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
|
312
|
+
Elem = type_member(fixed: Spell::HABTM_SpellBooks)
|
313
|
+
|
314
|
+
sig { params(records: T.any(Spell::HABTM_SpellBooks, T::Array[Spell::HABTM_SpellBooks])).returns(T.self_type) }
|
315
|
+
def <<(*records); end
|
316
|
+
|
317
|
+
sig { params(records: T.any(Spell::HABTM_SpellBooks, T::Array[Spell::HABTM_SpellBooks])).returns(T.self_type) }
|
318
|
+
def append(*records); end
|
319
|
+
|
320
|
+
sig { params(records: T.any(Spell::HABTM_SpellBooks, T::Array[Spell::HABTM_SpellBooks])).returns(T.self_type) }
|
321
|
+
def push(*records); end
|
322
|
+
|
323
|
+
sig { params(records: T.any(Spell::HABTM_SpellBooks, T::Array[Spell::HABTM_SpellBooks])).returns(T.self_type) }
|
324
|
+
def concat(*records); end
|
325
|
+
end
|