sorbet-rails 0.6.3 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitattributes +1 -2
- data/.gitignore +2 -1
- data/.travis.yml +3 -1
- data/README.md +54 -7
- data/Rakefile +3 -3
- data/lib/bundled_rbi/customizabel_rbi_formatter.rbi +29 -0
- data/lib/bundled_rbi/pluck_to_tstruct.rbi +2 -1
- data/lib/bundled_rbi/typed_enum.rbi +7 -0
- data/lib/sorbet-rails.rb +1 -3
- data/lib/sorbet-rails/active_record_rbi_formatter.rb +8 -2
- data/lib/sorbet-rails/config.rb +11 -0
- data/lib/sorbet-rails/deprecation.rb +1 -0
- data/lib/sorbet-rails/gem_plugins/active_flag_plugin.rb +0 -1
- data/lib/sorbet-rails/gem_plugins/kaminari_plugin.rb +8 -0
- data/lib/sorbet-rails/gem_plugins/paperclip_plugin.rb +0 -1
- data/lib/sorbet-rails/job_rbi_formatter.rb +73 -62
- data/lib/sorbet-rails/mailer_rbi_formatter.rb +40 -27
- data/lib/sorbet-rails/model_column_utils.rb +129 -0
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +37 -3
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +0 -103
- 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 +0 -9
- data/lib/sorbet-rails/model_rbi_formatter.rb +4 -8
- data/lib/sorbet-rails/model_utils.rb +73 -32
- data/lib/sorbet-rails/rails_mixins/generated_url_helpers.rb +2 -3
- data/lib/sorbet-rails/rails_mixins/pluck_to_tstruct.rb +17 -7
- data/lib/sorbet-rails/railtie.rb +0 -2
- data/lib/sorbet-rails/sorbet_utils.rb +152 -150
- data/lib/sorbet-rails/tasks/rails_rbi.rake +18 -26
- data/sorbet-rails.gemspec +1 -1
- data/spec/generators/rails-template.rb +3 -6
- data/spec/generators/sorbet_test_cases.rb +66 -88
- data/spec/job_rbi_formatter_spec.rb +1 -1
- data/spec/pluck_to_tstruct_spec.rb +74 -1
- data/spec/rails_helper.rb +2 -2
- data/spec/rake_rails_rbi_jobs_spec.rb +20 -0
- data/spec/rake_rails_rbi_mailers_spec.rb +21 -0
- data/spec/support/v5.0/Gemfile +1 -1
- data/spec/support/v5.0/Gemfile.lock +9 -9
- data/spec/support/v5.0/app/models/spell_book.rb +2 -0
- data/spec/support/v5.0/app/models/wizard.rb +1 -1
- data/spec/support/v5.0/sorbet_test_cases.rb +66 -88
- data/spec/support/v5.1/Gemfile.lock +7 -7
- data/spec/support/v5.1/app/models/spell_book.rb +2 -0
- data/spec/support/v5.1/app/models/wizard.rb +1 -1
- data/spec/support/v5.1/sorbet_test_cases.rb +66 -88
- data/spec/support/v5.2/Gemfile +1 -1
- data/spec/support/v5.2/Gemfile.lock +9 -9
- data/spec/support/v5.2/app/models/spell_book.rb +2 -0
- data/spec/support/v5.2/app/models/wizard.rb +1 -1
- data/spec/support/v5.2/sorbet_test_cases.rb +66 -88
- data/spec/support/v6.0/.gitignore +6 -0
- data/spec/support/v6.0/Gemfile +3 -3
- data/spec/support/v6.0/Gemfile.lock +77 -76
- data/spec/support/v6.0/app/models/spell_book.rb +2 -0
- data/spec/support/v6.0/app/models/wizard.rb +1 -1
- data/spec/support/v6.0/bin/bundle +22 -13
- data/spec/support/v6.0/config/environments/test.rb +1 -1
- data/spec/support/v6.0/sorbet_test_cases.rb +66 -88
- data/spec/support/v6.0/tmp/pids/.keep +0 -0
- data/spec/test_data/v5.0/expected_active_record_base.rbi +2 -2
- data/spec/test_data/v5.0/expected_active_record_relation.rbi +2 -2
- data/spec/test_data/v5.0/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v5.0/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v5.0/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v5.0/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v5.0/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v5.0/expected_headmaster.rbi +60 -190
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +42 -188
- data/spec/test_data/v5.0/expected_potion.rbi +51 -188
- data/spec/test_data/v5.0/expected_robe.rbi +51 -190
- data/spec/test_data/v5.0/expected_schema_migration.rbi +42 -188
- data/spec/test_data/v5.0/expected_school.rbi +51 -190
- data/spec/test_data/v5.0/expected_spell.rbi +42 -190
- data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +60 -190
- data/spec/test_data/v5.0/expected_spell_book.rbi +86 -215
- data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +60 -190
- data/spec/test_data/v5.0/expected_squib.rbi +131 -263
- data/spec/test_data/v5.0/expected_subject.rbi +42 -190
- data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +60 -190
- data/spec/test_data/v5.0/expected_wand.rbi +84 -225
- data/spec/test_data/v5.0/expected_wizard.rbi +131 -263
- data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +60 -190
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +131 -263
- data/spec/test_data/v5.1/expected_active_record_base.rbi +2 -2
- data/spec/test_data/v5.1/expected_active_record_relation.rbi +2 -2
- data/spec/test_data/v5.1/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v5.1/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v5.1/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v5.1/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v5.1/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v5.1/expected_headmaster.rbi +60 -196
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +42 -194
- data/spec/test_data/v5.1/expected_potion.rbi +51 -194
- data/spec/test_data/v5.1/expected_robe.rbi +51 -196
- data/spec/test_data/v5.1/expected_schema_migration.rbi +42 -194
- data/spec/test_data/v5.1/expected_school.rbi +51 -196
- data/spec/test_data/v5.1/expected_spell.rbi +42 -196
- data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +60 -196
- data/spec/test_data/v5.1/expected_spell_book.rbi +86 -221
- data/spec/test_data/v5.1/expected_spell_book/habtm_spells.rbi +60 -196
- data/spec/test_data/v5.1/expected_squib.rbi +132 -270
- data/spec/test_data/v5.1/expected_subject.rbi +42 -196
- data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +60 -196
- data/spec/test_data/v5.1/expected_wand.rbi +84 -231
- data/spec/test_data/v5.1/expected_wizard.rbi +132 -270
- data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +60 -196
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +132 -270
- data/spec/test_data/v5.2/expected_active_record_base.rbi +2 -2
- data/spec/test_data/v5.2/expected_active_record_relation.rbi +2 -2
- data/spec/test_data/v5.2/expected_attachment.rbi +60 -194
- data/spec/test_data/v5.2/expected_blob.rbi +80 -214
- data/spec/test_data/v5.2/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v5.2/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v5.2/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v5.2/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v5.2/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v5.2/expected_headmaster.rbi +60 -196
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +42 -194
- data/spec/test_data/v5.2/expected_potion.rbi +51 -194
- data/spec/test_data/v5.2/expected_robe.rbi +51 -196
- data/spec/test_data/v5.2/expected_schema_migration.rbi +42 -194
- data/spec/test_data/v5.2/expected_school.rbi +51 -196
- data/spec/test_data/v5.2/expected_spell.rbi +42 -196
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +60 -196
- data/spec/test_data/v5.2/expected_spell_book.rbi +86 -221
- data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +60 -196
- data/spec/test_data/v5.2/expected_squib.rbi +156 -276
- data/spec/test_data/v5.2/expected_subject.rbi +42 -196
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +60 -196
- data/spec/test_data/v5.2/expected_wand.rbi +84 -231
- data/spec/test_data/v5.2/expected_wizard.rbi +156 -276
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +60 -196
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +156 -276
- data/spec/test_data/v6.0/expected_active_record_base.rbi +2 -2
- data/spec/test_data/v6.0/expected_active_record_relation.rbi +10 -10
- data/spec/test_data/v6.0/expected_attachment.rbi +60 -218
- data/spec/test_data/v6.0/expected_blob.rbi +80 -238
- data/spec/test_data/v6.0/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v6.0/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v6.0/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v6.0/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v6.0/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v6.0/expected_headmaster.rbi +60 -220
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +42 -218
- data/spec/test_data/v6.0/expected_potion.rbi +51 -218
- data/spec/test_data/v6.0/expected_robe.rbi +51 -220
- data/spec/test_data/v6.0/expected_routes.rbi +14 -7
- data/spec/test_data/v6.0/expected_schema_migration.rbi +42 -218
- data/spec/test_data/v6.0/expected_school.rbi +51 -220
- data/spec/test_data/v6.0/expected_spell.rbi +42 -220
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +60 -220
- data/spec/test_data/v6.0/expected_spell_book.rbi +98 -257
- data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +60 -220
- data/spec/test_data/v6.0/expected_squib.rbi +182 -326
- data/spec/test_data/v6.0/expected_subject.rbi +42 -220
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +60 -220
- data/spec/test_data/v6.0/expected_wand.rbi +100 -271
- data/spec/test_data/v6.0/expected_wizard.rbi +182 -326
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +60 -220
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +182 -326
- metadata +46 -11
- data/lib/bundled_rbi/parameters.rbi +0 -28
- data/lib/sorbet-rails/custom_types/boolean_string.rb +0 -42
- data/lib/sorbet-rails/custom_types/integer_string.rb +0 -45
- data/lib/sorbet-rails/rails_mixins/custom_params_methods.rb +0 -57
- data/spec/boolean_string_spec.rb +0 -59
- data/spec/custom_params_methods_spec.rb +0 -138
- data/spec/integer_string_spec.rb +0 -46
@@ -8,8 +8,6 @@ module Spell::ActiveRelation_WhereNot
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module Spell::GeneratedAttributeMethods
|
11
|
-
extend T::Sig
|
12
|
-
|
13
11
|
sig { returns(Integer) }
|
14
12
|
def id; end
|
15
13
|
|
@@ -30,8 +28,6 @@ module Spell::GeneratedAttributeMethods
|
|
30
28
|
end
|
31
29
|
|
32
30
|
module Spell::GeneratedAssociationMethods
|
33
|
-
extend T::Sig
|
34
|
-
|
35
31
|
sig { returns(::SpellBook::ActiveRecord_Associations_CollectionProxy) }
|
36
32
|
def spell_books; end
|
37
33
|
|
@@ -63,117 +59,11 @@ class Spell < ApplicationRecord
|
|
63
59
|
include Spell::GeneratedAttributeMethods
|
64
60
|
include Spell::GeneratedAssociationMethods
|
65
61
|
extend Spell::CustomFinderMethods
|
66
|
-
extend
|
67
|
-
extend T::Generic
|
62
|
+
extend Spell::QueryMethodsReturningRelation
|
68
63
|
RelationType = T.type_alias { T.any(Spell::ActiveRecord_Relation, Spell::ActiveRecord_Associations_CollectionProxy, Spell::ActiveRecord_AssociationRelation) }
|
69
|
-
|
70
|
-
sig { returns(Spell::ActiveRecord_Relation) }
|
71
|
-
def self.all; end
|
72
|
-
|
73
|
-
sig { params(block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_Relation) }
|
74
|
-
def self.unscoped(&block); end
|
75
|
-
|
76
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
77
|
-
def self.select(*args); end
|
78
|
-
|
79
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
80
|
-
def self.reselect(*args); end
|
81
|
-
|
82
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
83
|
-
def self.order(*args); end
|
84
|
-
|
85
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
86
|
-
def self.reorder(*args); end
|
87
|
-
|
88
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
89
|
-
def self.group(*args); end
|
90
|
-
|
91
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
92
|
-
def self.limit(*args); end
|
93
|
-
|
94
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
95
|
-
def self.offset(*args); end
|
96
|
-
|
97
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
98
|
-
def self.joins(*args); end
|
99
|
-
|
100
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
101
|
-
def self.left_joins(*args); end
|
102
|
-
|
103
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
104
|
-
def self.left_outer_joins(*args); end
|
105
|
-
|
106
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
107
|
-
def self.where(*args); end
|
108
|
-
|
109
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
110
|
-
def self.rewhere(*args); end
|
111
|
-
|
112
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
113
|
-
def self.preload(*args); end
|
114
|
-
|
115
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
116
|
-
def self.extract_associated(*args); end
|
117
|
-
|
118
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
119
|
-
def self.eager_load(*args); end
|
120
|
-
|
121
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
122
|
-
def self.includes(*args); end
|
123
|
-
|
124
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
125
|
-
def self.from(*args); end
|
126
|
-
|
127
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
128
|
-
def self.lock(*args); end
|
129
|
-
|
130
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
131
|
-
def self.readonly(*args); end
|
132
|
-
|
133
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
134
|
-
def self.or(*args); end
|
135
|
-
|
136
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
137
|
-
def self.having(*args); end
|
138
|
-
|
139
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
140
|
-
def self.create_with(*args); end
|
141
|
-
|
142
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
143
|
-
def self.distinct(*args); end
|
144
|
-
|
145
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
146
|
-
def self.references(*args); end
|
147
|
-
|
148
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
149
|
-
def self.none(*args); end
|
150
|
-
|
151
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
152
|
-
def self.unscope(*args); end
|
153
|
-
|
154
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
155
|
-
def self.optimizer_hints(*args); end
|
156
|
-
|
157
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
158
|
-
def self.merge(*args); end
|
159
|
-
|
160
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
161
|
-
def self.except(*args); end
|
162
|
-
|
163
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_Relation) }
|
164
|
-
def self.only(*args); end
|
165
|
-
|
166
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_Relation) }
|
167
|
-
def self.extending(*args, &block); end
|
168
64
|
end
|
169
65
|
|
170
|
-
|
171
|
-
include Spell::ActiveRelation_WhereNot
|
172
|
-
include Spell::CustomFinderMethods
|
173
|
-
extend T::Sig
|
174
|
-
extend T::Generic
|
175
|
-
Elem = type_member(fixed: Spell)
|
176
|
-
|
66
|
+
module Spell::QueryMethodsReturningRelation
|
177
67
|
sig { returns(Spell::ActiveRecord_Relation) }
|
178
68
|
def all; end
|
179
69
|
|
@@ -272,19 +162,25 @@ class Spell::ActiveRecord_Relation < ActiveRecord::Relation
|
|
272
162
|
|
273
163
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_Relation) }
|
274
164
|
def extending(*args, &block); end
|
275
|
-
end
|
276
165
|
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
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
|
283
178
|
|
179
|
+
module Spell::QueryMethodsReturningAssociationRelation
|
284
180
|
sig { returns(Spell::ActiveRecord_AssociationRelation) }
|
285
181
|
def all; end
|
286
182
|
|
287
|
-
sig { params(block: T.nilable(T.proc.void)).returns(Spell::
|
183
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_Relation) }
|
288
184
|
def unscoped(&block); end
|
289
185
|
|
290
186
|
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
@@ -379,112 +275,38 @@ class Spell::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelatio
|
|
379
275
|
|
380
276
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_AssociationRelation) }
|
381
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
|
382
290
|
end
|
383
291
|
|
384
|
-
class Spell::
|
292
|
+
class Spell::ActiveRecord_Relation < ActiveRecord::Relation
|
293
|
+
include Spell::ActiveRelation_WhereNot
|
385
294
|
include Spell::CustomFinderMethods
|
386
|
-
|
387
|
-
extend T::Generic
|
295
|
+
include Spell::QueryMethodsReturningRelation
|
388
296
|
Elem = type_member(fixed: Spell)
|
297
|
+
end
|
389
298
|
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
397
|
-
def select(*args); end
|
398
|
-
|
399
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
400
|
-
def reselect(*args); end
|
401
|
-
|
402
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
403
|
-
def order(*args); end
|
404
|
-
|
405
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
406
|
-
def reorder(*args); end
|
407
|
-
|
408
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
409
|
-
def group(*args); end
|
410
|
-
|
411
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
412
|
-
def limit(*args); end
|
413
|
-
|
414
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
415
|
-
def offset(*args); end
|
416
|
-
|
417
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
418
|
-
def joins(*args); end
|
419
|
-
|
420
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
421
|
-
def left_joins(*args); end
|
422
|
-
|
423
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
424
|
-
def left_outer_joins(*args); end
|
425
|
-
|
426
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
427
|
-
def where(*args); end
|
428
|
-
|
429
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
430
|
-
def rewhere(*args); end
|
431
|
-
|
432
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
433
|
-
def preload(*args); end
|
434
|
-
|
435
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
436
|
-
def extract_associated(*args); end
|
437
|
-
|
438
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
439
|
-
def eager_load(*args); end
|
440
|
-
|
441
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
442
|
-
def includes(*args); end
|
443
|
-
|
444
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
445
|
-
def from(*args); end
|
446
|
-
|
447
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
448
|
-
def lock(*args); end
|
449
|
-
|
450
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
451
|
-
def readonly(*args); end
|
452
|
-
|
453
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
454
|
-
def or(*args); end
|
455
|
-
|
456
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
457
|
-
def having(*args); end
|
458
|
-
|
459
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
460
|
-
def create_with(*args); end
|
461
|
-
|
462
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
463
|
-
def distinct(*args); end
|
464
|
-
|
465
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
466
|
-
def references(*args); end
|
467
|
-
|
468
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
469
|
-
def none(*args); end
|
470
|
-
|
471
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
472
|
-
def unscope(*args); end
|
473
|
-
|
474
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
475
|
-
def optimizer_hints(*args); end
|
476
|
-
|
477
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
478
|
-
def merge(*args); end
|
479
|
-
|
480
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
481
|
-
def except(*args); end
|
482
|
-
|
483
|
-
sig { params(args: T.untyped).returns(Spell::ActiveRecord_AssociationRelation) }
|
484
|
-
def only(*args); end
|
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
|
485
305
|
|
486
|
-
|
487
|
-
|
306
|
+
class Spell::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
307
|
+
include Spell::CustomFinderMethods
|
308
|
+
include Spell::QueryMethodsReturningAssociationRelation
|
309
|
+
Elem = type_member(fixed: Spell)
|
488
310
|
|
489
311
|
sig { params(records: T.any(Spell, T::Array[Spell])).returns(T.self_type) }
|
490
312
|
def <<(*records); end
|
@@ -8,8 +8,6 @@ module Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module Spell::HABTM_SpellBooks::GeneratedAttributeMethods
|
11
|
-
extend T::Sig
|
12
|
-
|
13
11
|
sig { returns(Integer) }
|
14
12
|
def spell_book_id; end
|
15
13
|
|
@@ -30,17 +28,33 @@ module Spell::HABTM_SpellBooks::GeneratedAttributeMethods
|
|
30
28
|
end
|
31
29
|
|
32
30
|
module Spell::HABTM_SpellBooks::GeneratedAssociationMethods
|
33
|
-
extend T::Sig
|
34
|
-
|
35
31
|
sig { returns(T.nilable(::Spell)) }
|
36
32
|
def left_side; end
|
37
33
|
|
34
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
35
|
+
def build_left_side(*args, &block); end
|
36
|
+
|
37
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
38
|
+
def create_left_side(*args, &block); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
41
|
+
def create_left_side!(*args, &block); end
|
42
|
+
|
38
43
|
sig { params(value: T.nilable(::Spell)).void }
|
39
44
|
def left_side=(value); end
|
40
45
|
|
41
46
|
sig { returns(::SpellBook) }
|
42
47
|
def spell_book; end
|
43
48
|
|
49
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
50
|
+
def build_spell_book(*args, &block); end
|
51
|
+
|
52
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
53
|
+
def create_spell_book(*args, &block); end
|
54
|
+
|
55
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
56
|
+
def create_spell_book!(*args, &block); end
|
57
|
+
|
44
58
|
sig { params(value: ::SpellBook).void }
|
45
59
|
def spell_book=(value); end
|
46
60
|
end
|
@@ -66,117 +80,11 @@ class Spell::HABTM_SpellBooks < ActiveRecord::Base
|
|
66
80
|
include Spell::HABTM_SpellBooks::GeneratedAttributeMethods
|
67
81
|
include Spell::HABTM_SpellBooks::GeneratedAssociationMethods
|
68
82
|
extend Spell::HABTM_SpellBooks::CustomFinderMethods
|
69
|
-
extend
|
70
|
-
extend T::Generic
|
83
|
+
extend Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
|
71
84
|
RelationType = T.type_alias { T.any(Spell::HABTM_SpellBooks::ActiveRecord_Relation, Spell::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy, Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
72
|
-
|
73
|
-
sig { returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
74
|
-
def self.all; end
|
75
|
-
|
76
|
-
sig { params(block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
77
|
-
def self.unscoped(&block); end
|
78
|
-
|
79
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
80
|
-
def self.select(*args); end
|
81
|
-
|
82
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
83
|
-
def self.reselect(*args); end
|
84
|
-
|
85
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
86
|
-
def self.order(*args); end
|
87
|
-
|
88
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
89
|
-
def self.reorder(*args); end
|
90
|
-
|
91
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
92
|
-
def self.group(*args); end
|
93
|
-
|
94
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
95
|
-
def self.limit(*args); end
|
96
|
-
|
97
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
98
|
-
def self.offset(*args); end
|
99
|
-
|
100
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
101
|
-
def self.joins(*args); end
|
102
|
-
|
103
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
104
|
-
def self.left_joins(*args); end
|
105
|
-
|
106
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
107
|
-
def self.left_outer_joins(*args); end
|
108
|
-
|
109
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
110
|
-
def self.where(*args); end
|
111
|
-
|
112
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
113
|
-
def self.rewhere(*args); end
|
114
|
-
|
115
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
116
|
-
def self.preload(*args); end
|
117
|
-
|
118
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
119
|
-
def self.extract_associated(*args); end
|
120
|
-
|
121
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
122
|
-
def self.eager_load(*args); end
|
123
|
-
|
124
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
125
|
-
def self.includes(*args); end
|
126
|
-
|
127
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
128
|
-
def self.from(*args); end
|
129
|
-
|
130
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
131
|
-
def self.lock(*args); end
|
132
|
-
|
133
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
134
|
-
def self.readonly(*args); end
|
135
|
-
|
136
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
137
|
-
def self.or(*args); end
|
138
|
-
|
139
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
140
|
-
def self.having(*args); end
|
141
|
-
|
142
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
143
|
-
def self.create_with(*args); end
|
144
|
-
|
145
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
146
|
-
def self.distinct(*args); end
|
147
|
-
|
148
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
149
|
-
def self.references(*args); end
|
150
|
-
|
151
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
152
|
-
def self.none(*args); end
|
153
|
-
|
154
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
155
|
-
def self.unscope(*args); end
|
156
|
-
|
157
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
158
|
-
def self.optimizer_hints(*args); end
|
159
|
-
|
160
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
161
|
-
def self.merge(*args); end
|
162
|
-
|
163
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
164
|
-
def self.except(*args); end
|
165
|
-
|
166
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
167
|
-
def self.only(*args); end
|
168
|
-
|
169
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
170
|
-
def self.extending(*args, &block); end
|
171
85
|
end
|
172
86
|
|
173
|
-
|
174
|
-
include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
|
175
|
-
include Spell::HABTM_SpellBooks::CustomFinderMethods
|
176
|
-
extend T::Sig
|
177
|
-
extend T::Generic
|
178
|
-
Elem = type_member(fixed: Spell::HABTM_SpellBooks)
|
179
|
-
|
87
|
+
module Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
|
180
88
|
sig { returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
181
89
|
def all; end
|
182
90
|
|
@@ -275,19 +183,25 @@ class Spell::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relation
|
|
275
183
|
|
276
184
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
277
185
|
def extending(*args, &block); end
|
278
|
-
end
|
279
186
|
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
187
|
+
sig do
|
188
|
+
params(
|
189
|
+
of: T.nilable(Integer),
|
190
|
+
start: T.nilable(Integer),
|
191
|
+
finish: T.nilable(Integer),
|
192
|
+
load: T.nilable(T::Boolean),
|
193
|
+
error_on_ignore: T.nilable(T::Boolean),
|
194
|
+
block: T.nilable(T.proc.params(e: Spell::HABTM_SpellBooks::ActiveRecord_Relation).void)
|
195
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
196
|
+
end
|
197
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
198
|
+
end
|
286
199
|
|
200
|
+
module Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
|
287
201
|
sig { returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
288
202
|
def all; end
|
289
203
|
|
290
|
-
sig { params(block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::
|
204
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
291
205
|
def unscoped(&block); end
|
292
206
|
|
293
207
|
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
@@ -382,112 +296,38 @@ class Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveRecord::
|
|
382
296
|
|
383
297
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
384
298
|
def extending(*args, &block); end
|
299
|
+
|
300
|
+
sig do
|
301
|
+
params(
|
302
|
+
of: T.nilable(Integer),
|
303
|
+
start: T.nilable(Integer),
|
304
|
+
finish: T.nilable(Integer),
|
305
|
+
load: T.nilable(T::Boolean),
|
306
|
+
error_on_ignore: T.nilable(T::Boolean),
|
307
|
+
block: T.nilable(T.proc.params(e: Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation).void)
|
308
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
309
|
+
end
|
310
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
385
311
|
end
|
386
312
|
|
387
|
-
class Spell::HABTM_SpellBooks::
|
313
|
+
class Spell::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relation
|
314
|
+
include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
|
388
315
|
include Spell::HABTM_SpellBooks::CustomFinderMethods
|
389
|
-
|
390
|
-
extend T::Generic
|
316
|
+
include Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
|
391
317
|
Elem = type_member(fixed: Spell::HABTM_SpellBooks)
|
318
|
+
end
|
392
319
|
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
400
|
-
def select(*args); end
|
401
|
-
|
402
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
403
|
-
def reselect(*args); end
|
404
|
-
|
405
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
406
|
-
def order(*args); end
|
407
|
-
|
408
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
409
|
-
def reorder(*args); end
|
410
|
-
|
411
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
412
|
-
def group(*args); end
|
413
|
-
|
414
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
415
|
-
def limit(*args); end
|
416
|
-
|
417
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
418
|
-
def offset(*args); end
|
419
|
-
|
420
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
421
|
-
def joins(*args); end
|
422
|
-
|
423
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
424
|
-
def left_joins(*args); end
|
425
|
-
|
426
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
427
|
-
def left_outer_joins(*args); end
|
428
|
-
|
429
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
430
|
-
def where(*args); end
|
431
|
-
|
432
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
433
|
-
def rewhere(*args); end
|
434
|
-
|
435
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
436
|
-
def preload(*args); end
|
437
|
-
|
438
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
439
|
-
def extract_associated(*args); end
|
440
|
-
|
441
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
442
|
-
def eager_load(*args); end
|
443
|
-
|
444
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
445
|
-
def includes(*args); end
|
446
|
-
|
447
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
448
|
-
def from(*args); end
|
449
|
-
|
450
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
451
|
-
def lock(*args); end
|
452
|
-
|
453
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
454
|
-
def readonly(*args); end
|
455
|
-
|
456
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
457
|
-
def or(*args); end
|
458
|
-
|
459
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
460
|
-
def having(*args); end
|
461
|
-
|
462
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
463
|
-
def create_with(*args); end
|
464
|
-
|
465
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
466
|
-
def distinct(*args); end
|
467
|
-
|
468
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
469
|
-
def references(*args); end
|
470
|
-
|
471
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
472
|
-
def none(*args); end
|
473
|
-
|
474
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
475
|
-
def unscope(*args); end
|
476
|
-
|
477
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
478
|
-
def optimizer_hints(*args); end
|
479
|
-
|
480
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
481
|
-
def merge(*args); end
|
482
|
-
|
483
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
484
|
-
def except(*args); end
|
485
|
-
|
486
|
-
sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
487
|
-
def only(*args); end
|
320
|
+
class Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
321
|
+
include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
|
322
|
+
include Spell::HABTM_SpellBooks::CustomFinderMethods
|
323
|
+
include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
|
324
|
+
Elem = type_member(fixed: Spell::HABTM_SpellBooks)
|
325
|
+
end
|
488
326
|
|
489
|
-
|
490
|
-
|
327
|
+
class Spell::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
328
|
+
include Spell::HABTM_SpellBooks::CustomFinderMethods
|
329
|
+
include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
|
330
|
+
Elem = type_member(fixed: Spell::HABTM_SpellBooks)
|
491
331
|
|
492
332
|
sig { params(records: T.any(Spell::HABTM_SpellBooks, T::Array[Spell::HABTM_SpellBooks])).returns(T.self_type) }
|
493
333
|
def <<(*records); end
|