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
@@ -3,8 +3,6 @@
|
|
3
3
|
|
4
4
|
# typed: strong
|
5
5
|
module SpellBook::EnumInstanceMethods
|
6
|
-
extend T::Sig
|
7
|
-
|
8
6
|
sig { returns(T::Boolean) }
|
9
7
|
def unclassified?; end
|
10
8
|
|
@@ -30,8 +28,6 @@ module SpellBook::ActiveRelation_WhereNot
|
|
30
28
|
end
|
31
29
|
|
32
30
|
module SpellBook::GeneratedAttributeMethods
|
33
|
-
extend T::Sig
|
34
|
-
|
35
31
|
sig { returns(String) }
|
36
32
|
def book_type; end
|
37
33
|
|
@@ -79,8 +75,6 @@ class SpellBook::BookType < T::Enum
|
|
79
75
|
end
|
80
76
|
|
81
77
|
module SpellBook::GeneratedAssociationMethods
|
82
|
-
extend T::Sig
|
83
|
-
|
84
78
|
sig { returns(::Spell::ActiveRecord_Associations_CollectionProxy) }
|
85
79
|
def spells; end
|
86
80
|
|
@@ -93,6 +87,15 @@ module SpellBook::GeneratedAssociationMethods
|
|
93
87
|
sig { returns(::Wizard) }
|
94
88
|
def wizard; end
|
95
89
|
|
90
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
91
|
+
def build_wizard(*args, &block); end
|
92
|
+
|
93
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
94
|
+
def create_wizard(*args, &block); end
|
95
|
+
|
96
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
97
|
+
def create_wizard!(*args, &block); end
|
98
|
+
|
96
99
|
sig { params(value: ::Wizard).void }
|
97
100
|
def wizard=(value); end
|
98
101
|
end
|
@@ -119,8 +122,7 @@ class SpellBook < ApplicationRecord
|
|
119
122
|
include SpellBook::GeneratedAttributeMethods
|
120
123
|
include SpellBook::GeneratedAssociationMethods
|
121
124
|
extend SpellBook::CustomFinderMethods
|
122
|
-
extend
|
123
|
-
extend T::Generic
|
125
|
+
extend SpellBook::QueryMethodsReturningRelation
|
124
126
|
RelationType = T.type_alias { T.any(SpellBook::ActiveRecord_Relation, SpellBook::ActiveRecord_Associations_CollectionProxy, SpellBook::ActiveRecord_AssociationRelation) }
|
125
127
|
|
126
128
|
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
@@ -133,118 +135,87 @@ class SpellBook < ApplicationRecord
|
|
133
135
|
def self.dark_art(*args); end
|
134
136
|
|
135
137
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
136
|
-
def self.
|
137
|
-
|
138
|
-
sig { returns(SpellBook::ActiveRecord_Relation) }
|
139
|
-
def self.all; end
|
140
|
-
|
141
|
-
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
|
142
|
-
def self.unscoped(&block); end
|
143
|
-
|
144
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
145
|
-
def self.select(*args); end
|
146
|
-
|
147
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
148
|
-
def self.order(*args); end
|
149
|
-
|
150
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
151
|
-
def self.reorder(*args); end
|
152
|
-
|
153
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
154
|
-
def self.group(*args); end
|
155
|
-
|
156
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
157
|
-
def self.limit(*args); end
|
158
|
-
|
159
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
160
|
-
def self.offset(*args); end
|
161
|
-
|
162
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
163
|
-
def self.joins(*args); end
|
164
|
-
|
165
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
166
|
-
def self.left_joins(*args); end
|
167
|
-
|
168
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
169
|
-
def self.left_outer_joins(*args); end
|
138
|
+
def self.recent(*args); end
|
170
139
|
|
171
140
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
172
|
-
def self.
|
173
|
-
|
174
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
175
|
-
def self.rewhere(*args); end
|
176
|
-
|
177
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
178
|
-
def self.preload(*args); end
|
179
|
-
|
180
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
181
|
-
def self.eager_load(*args); end
|
182
|
-
|
183
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
184
|
-
def self.includes(*args); end
|
185
|
-
|
186
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
187
|
-
def self.from(*args); end
|
188
|
-
|
189
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
190
|
-
def self.lock(*args); end
|
191
|
-
|
192
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
193
|
-
def self.readonly(*args); end
|
141
|
+
def self.unclassified(*args); end
|
194
142
|
|
195
|
-
sig {
|
196
|
-
def
|
143
|
+
sig { returns(SpellBook::BookType) }
|
144
|
+
def typed_book_type; end
|
197
145
|
|
198
|
-
sig { params(
|
199
|
-
def
|
146
|
+
sig { params(value: SpellBook::BookType).void }
|
147
|
+
def typed_book_type=(value); end
|
148
|
+
end
|
200
149
|
|
201
|
-
|
202
|
-
|
150
|
+
class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
|
151
|
+
include SpellBook::ActiveRelation_WhereNot
|
152
|
+
include SpellBook::CustomFinderMethods
|
153
|
+
include SpellBook::QueryMethodsReturningRelation
|
154
|
+
Elem = type_member(fixed: SpellBook)
|
203
155
|
|
204
156
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
205
|
-
def
|
157
|
+
def biology(*args); end
|
206
158
|
|
207
159
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
208
|
-
def
|
160
|
+
def dark_art(*args); end
|
209
161
|
|
210
162
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
211
|
-
def
|
163
|
+
def recent(*args); end
|
212
164
|
|
213
165
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
214
|
-
def
|
166
|
+
def unclassified(*args); end
|
167
|
+
end
|
215
168
|
|
216
|
-
|
217
|
-
|
169
|
+
class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
170
|
+
include SpellBook::ActiveRelation_WhereNot
|
171
|
+
include SpellBook::CustomFinderMethods
|
172
|
+
include SpellBook::QueryMethodsReturningAssociationRelation
|
173
|
+
Elem = type_member(fixed: SpellBook)
|
218
174
|
|
219
|
-
sig { params(args: T.untyped).returns(SpellBook::
|
220
|
-
def
|
175
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
176
|
+
def biology(*args); end
|
221
177
|
|
222
|
-
sig { params(args: T.untyped
|
223
|
-
def
|
178
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
179
|
+
def dark_art(*args); end
|
224
180
|
|
225
|
-
sig { returns(SpellBook::
|
226
|
-
def
|
181
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
182
|
+
def recent(*args); end
|
227
183
|
|
228
|
-
sig { params(
|
229
|
-
def
|
184
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
185
|
+
def unclassified(*args); end
|
230
186
|
end
|
231
187
|
|
232
|
-
class SpellBook::
|
233
|
-
include SpellBook::ActiveRelation_WhereNot
|
188
|
+
class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
234
189
|
include SpellBook::CustomFinderMethods
|
235
|
-
|
236
|
-
extend T::Generic
|
190
|
+
include SpellBook::QueryMethodsReturningAssociationRelation
|
237
191
|
Elem = type_member(fixed: SpellBook)
|
238
192
|
|
239
|
-
sig { params(args: T.untyped).returns(SpellBook::
|
193
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
240
194
|
def biology(*args); end
|
241
195
|
|
242
|
-
sig { params(args: T.untyped).returns(SpellBook::
|
196
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
243
197
|
def dark_art(*args); end
|
244
198
|
|
245
|
-
sig { params(args: T.untyped).returns(SpellBook::
|
199
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
200
|
+
def recent(*args); end
|
201
|
+
|
202
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
246
203
|
def unclassified(*args); end
|
247
204
|
|
205
|
+
sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
|
206
|
+
def <<(*records); end
|
207
|
+
|
208
|
+
sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
|
209
|
+
def append(*records); end
|
210
|
+
|
211
|
+
sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
|
212
|
+
def push(*records); end
|
213
|
+
|
214
|
+
sig { params(records: T.any(SpellBook, T::Array[SpellBook])).returns(T.self_type) }
|
215
|
+
def concat(*records); end
|
216
|
+
end
|
217
|
+
|
218
|
+
module SpellBook::QueryMethodsReturningRelation
|
248
219
|
sig { returns(SpellBook::ActiveRecord_Relation) }
|
249
220
|
def all; end
|
250
221
|
|
@@ -331,131 +302,25 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
|
|
331
302
|
|
332
303
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
|
333
304
|
def extending(*args, &block); end
|
334
|
-
end
|
335
|
-
|
336
|
-
class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
337
|
-
include SpellBook::ActiveRelation_WhereNot
|
338
|
-
include SpellBook::CustomFinderMethods
|
339
|
-
extend T::Sig
|
340
|
-
extend T::Generic
|
341
|
-
Elem = type_member(fixed: SpellBook)
|
342
305
|
|
343
|
-
sig
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
def
|
354
|
-
|
355
|
-
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
356
|
-
def unscoped(&block); end
|
357
|
-
|
358
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
359
|
-
def select(*args); end
|
360
|
-
|
361
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
362
|
-
def order(*args); end
|
363
|
-
|
364
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
365
|
-
def reorder(*args); end
|
366
|
-
|
367
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
368
|
-
def group(*args); end
|
369
|
-
|
370
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
371
|
-
def limit(*args); end
|
372
|
-
|
373
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
374
|
-
def offset(*args); end
|
375
|
-
|
376
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
377
|
-
def joins(*args); end
|
378
|
-
|
379
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
380
|
-
def left_joins(*args); end
|
381
|
-
|
382
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
383
|
-
def left_outer_joins(*args); end
|
384
|
-
|
385
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
386
|
-
def where(*args); end
|
387
|
-
|
388
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
389
|
-
def rewhere(*args); end
|
390
|
-
|
391
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
392
|
-
def preload(*args); end
|
393
|
-
|
394
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
395
|
-
def eager_load(*args); end
|
396
|
-
|
397
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
398
|
-
def includes(*args); end
|
399
|
-
|
400
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
401
|
-
def from(*args); end
|
402
|
-
|
403
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
404
|
-
def lock(*args); end
|
405
|
-
|
406
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
407
|
-
def readonly(*args); end
|
408
|
-
|
409
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
410
|
-
def or(*args); end
|
411
|
-
|
412
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
413
|
-
def having(*args); end
|
414
|
-
|
415
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
416
|
-
def create_with(*args); end
|
417
|
-
|
418
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
419
|
-
def distinct(*args); end
|
420
|
-
|
421
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
422
|
-
def references(*args); end
|
423
|
-
|
424
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
425
|
-
def none(*args); end
|
426
|
-
|
427
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
428
|
-
def unscope(*args); end
|
429
|
-
|
430
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
431
|
-
def merge(*args); end
|
432
|
-
|
433
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
434
|
-
def except(*args); end
|
435
|
-
|
436
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
437
|
-
def extending(*args, &block); end
|
306
|
+
sig do
|
307
|
+
params(
|
308
|
+
of: T.nilable(Integer),
|
309
|
+
start: T.nilable(Integer),
|
310
|
+
finish: T.nilable(Integer),
|
311
|
+
load: T.nilable(T::Boolean),
|
312
|
+
error_on_ignore: T.nilable(T::Boolean),
|
313
|
+
block: T.nilable(T.proc.params(e: SpellBook::ActiveRecord_Relation).void)
|
314
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
315
|
+
end
|
316
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
438
317
|
end
|
439
318
|
|
440
|
-
|
441
|
-
include SpellBook::CustomFinderMethods
|
442
|
-
extend T::Sig
|
443
|
-
extend T::Generic
|
444
|
-
Elem = type_member(fixed: SpellBook)
|
445
|
-
|
446
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
447
|
-
def biology(*args); end
|
448
|
-
|
449
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
450
|
-
def dark_art(*args); end
|
451
|
-
|
452
|
-
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
453
|
-
def unclassified(*args); end
|
454
|
-
|
319
|
+
module SpellBook::QueryMethodsReturningAssociationRelation
|
455
320
|
sig { returns(SpellBook::ActiveRecord_AssociationRelation) }
|
456
321
|
def all; end
|
457
322
|
|
458
|
-
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::
|
323
|
+
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
|
459
324
|
def unscoped(&block); end
|
460
325
|
|
461
326
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
@@ -539,15 +404,15 @@ class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Assoc
|
|
539
404
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
540
405
|
def extending(*args, &block); end
|
541
406
|
|
542
|
-
sig
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
def
|
407
|
+
sig do
|
408
|
+
params(
|
409
|
+
of: T.nilable(Integer),
|
410
|
+
start: T.nilable(Integer),
|
411
|
+
finish: T.nilable(Integer),
|
412
|
+
load: T.nilable(T::Boolean),
|
413
|
+
error_on_ignore: T.nilable(T::Boolean),
|
414
|
+
block: T.nilable(T.proc.params(e: SpellBook::ActiveRecord_AssociationRelation).void)
|
415
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
416
|
+
end
|
417
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
553
418
|
end
|
@@ -8,8 +8,6 @@ module SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module SpellBook::HABTM_Spells::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 SpellBook::HABTM_Spells::GeneratedAttributeMethods
|
|
30
28
|
end
|
31
29
|
|
32
30
|
module SpellBook::HABTM_Spells::GeneratedAssociationMethods
|
33
|
-
extend T::Sig
|
34
|
-
|
35
31
|
sig { returns(T.nilable(::SpellBook)) }
|
36
32
|
def left_side; end
|
37
33
|
|
34
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
35
|
+
def build_left_side(*args, &block); end
|
36
|
+
|
37
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
38
|
+
def create_left_side(*args, &block); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
41
|
+
def create_left_side!(*args, &block); end
|
42
|
+
|
38
43
|
sig { params(value: T.nilable(::SpellBook)).void }
|
39
44
|
def left_side=(value); end
|
40
45
|
|
41
46
|
sig { returns(::Spell) }
|
42
47
|
def spell; end
|
43
48
|
|
49
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
50
|
+
def build_spell(*args, &block); end
|
51
|
+
|
52
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
53
|
+
def create_spell(*args, &block); end
|
54
|
+
|
55
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
56
|
+
def create_spell!(*args, &block); end
|
57
|
+
|
44
58
|
sig { params(value: ::Spell).void }
|
45
59
|
def spell=(value); end
|
46
60
|
end
|
@@ -66,105 +80,11 @@ class SpellBook::HABTM_Spells < ActiveRecord::Base
|
|
66
80
|
include SpellBook::HABTM_Spells::GeneratedAttributeMethods
|
67
81
|
include SpellBook::HABTM_Spells::GeneratedAssociationMethods
|
68
82
|
extend SpellBook::HABTM_Spells::CustomFinderMethods
|
69
|
-
extend
|
70
|
-
extend T::Generic
|
83
|
+
extend SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
71
84
|
RelationType = T.type_alias { T.any(SpellBook::HABTM_Spells::ActiveRecord_Relation, SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy, SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
72
|
-
|
73
|
-
sig { returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
74
|
-
def self.all; end
|
75
|
-
|
76
|
-
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
77
|
-
def self.unscoped(&block); end
|
78
|
-
|
79
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
80
|
-
def self.select(*args); end
|
81
|
-
|
82
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
83
|
-
def self.order(*args); end
|
84
|
-
|
85
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
86
|
-
def self.reorder(*args); end
|
87
|
-
|
88
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
89
|
-
def self.group(*args); end
|
90
|
-
|
91
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
92
|
-
def self.limit(*args); end
|
93
|
-
|
94
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
95
|
-
def self.offset(*args); end
|
96
|
-
|
97
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
98
|
-
def self.joins(*args); end
|
99
|
-
|
100
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
101
|
-
def self.left_joins(*args); end
|
102
|
-
|
103
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
104
|
-
def self.left_outer_joins(*args); end
|
105
|
-
|
106
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
107
|
-
def self.where(*args); end
|
108
|
-
|
109
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
110
|
-
def self.rewhere(*args); end
|
111
|
-
|
112
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
113
|
-
def self.preload(*args); end
|
114
|
-
|
115
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
116
|
-
def self.eager_load(*args); end
|
117
|
-
|
118
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
119
|
-
def self.includes(*args); end
|
120
|
-
|
121
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
122
|
-
def self.from(*args); end
|
123
|
-
|
124
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
125
|
-
def self.lock(*args); end
|
126
|
-
|
127
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
128
|
-
def self.readonly(*args); end
|
129
|
-
|
130
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
131
|
-
def self.or(*args); end
|
132
|
-
|
133
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
134
|
-
def self.having(*args); end
|
135
|
-
|
136
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
137
|
-
def self.create_with(*args); end
|
138
|
-
|
139
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
140
|
-
def self.distinct(*args); end
|
141
|
-
|
142
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
143
|
-
def self.references(*args); end
|
144
|
-
|
145
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
146
|
-
def self.none(*args); end
|
147
|
-
|
148
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
149
|
-
def self.unscope(*args); end
|
150
|
-
|
151
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
152
|
-
def self.merge(*args); end
|
153
|
-
|
154
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
155
|
-
def self.except(*args); end
|
156
|
-
|
157
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
158
|
-
def self.extending(*args, &block); end
|
159
85
|
end
|
160
86
|
|
161
|
-
|
162
|
-
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
163
|
-
include SpellBook::HABTM_Spells::CustomFinderMethods
|
164
|
-
extend T::Sig
|
165
|
-
extend T::Generic
|
166
|
-
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
167
|
-
|
87
|
+
module SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
168
88
|
sig { returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
169
89
|
def all; end
|
170
90
|
|
@@ -251,19 +171,25 @@ class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
|
|
251
171
|
|
252
172
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
253
173
|
def extending(*args, &block); end
|
254
|
-
end
|
255
174
|
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
175
|
+
sig do
|
176
|
+
params(
|
177
|
+
of: T.nilable(Integer),
|
178
|
+
start: T.nilable(Integer),
|
179
|
+
finish: T.nilable(Integer),
|
180
|
+
load: T.nilable(T::Boolean),
|
181
|
+
error_on_ignore: T.nilable(T::Boolean),
|
182
|
+
block: T.nilable(T.proc.params(e: SpellBook::HABTM_Spells::ActiveRecord_Relation).void)
|
183
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
184
|
+
end
|
185
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
186
|
+
end
|
262
187
|
|
188
|
+
module SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
263
189
|
sig { returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
264
190
|
def all; end
|
265
191
|
|
266
|
-
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::
|
192
|
+
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
267
193
|
def unscoped(&block); end
|
268
194
|
|
269
195
|
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
@@ -346,100 +272,38 @@ class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::
|
|
346
272
|
|
347
273
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
348
274
|
def extending(*args, &block); end
|
275
|
+
|
276
|
+
sig do
|
277
|
+
params(
|
278
|
+
of: T.nilable(Integer),
|
279
|
+
start: T.nilable(Integer),
|
280
|
+
finish: T.nilable(Integer),
|
281
|
+
load: T.nilable(T::Boolean),
|
282
|
+
error_on_ignore: T.nilable(T::Boolean),
|
283
|
+
block: T.nilable(T.proc.params(e: SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation).void)
|
284
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
285
|
+
end
|
286
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
349
287
|
end
|
350
288
|
|
351
|
-
class SpellBook::HABTM_Spells::
|
289
|
+
class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
|
290
|
+
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
352
291
|
include SpellBook::HABTM_Spells::CustomFinderMethods
|
353
|
-
|
354
|
-
extend T::Generic
|
292
|
+
include SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
355
293
|
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
294
|
+
end
|
356
295
|
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
364
|
-
def select(*args); end
|
365
|
-
|
366
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
367
|
-
def order(*args); end
|
368
|
-
|
369
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
370
|
-
def reorder(*args); end
|
371
|
-
|
372
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
373
|
-
def group(*args); end
|
374
|
-
|
375
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
376
|
-
def limit(*args); end
|
377
|
-
|
378
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
379
|
-
def offset(*args); end
|
380
|
-
|
381
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
382
|
-
def joins(*args); end
|
383
|
-
|
384
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
385
|
-
def left_joins(*args); end
|
386
|
-
|
387
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
388
|
-
def left_outer_joins(*args); end
|
389
|
-
|
390
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
391
|
-
def where(*args); end
|
392
|
-
|
393
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
394
|
-
def rewhere(*args); end
|
395
|
-
|
396
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
397
|
-
def preload(*args); end
|
398
|
-
|
399
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
400
|
-
def eager_load(*args); end
|
401
|
-
|
402
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
403
|
-
def includes(*args); end
|
404
|
-
|
405
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
406
|
-
def from(*args); end
|
407
|
-
|
408
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
409
|
-
def lock(*args); end
|
410
|
-
|
411
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
412
|
-
def readonly(*args); end
|
413
|
-
|
414
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
415
|
-
def or(*args); end
|
416
|
-
|
417
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
418
|
-
def having(*args); end
|
419
|
-
|
420
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
421
|
-
def create_with(*args); end
|
422
|
-
|
423
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
424
|
-
def distinct(*args); end
|
425
|
-
|
426
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
427
|
-
def references(*args); end
|
428
|
-
|
429
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
430
|
-
def none(*args); end
|
431
|
-
|
432
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
433
|
-
def unscope(*args); end
|
434
|
-
|
435
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
436
|
-
def merge(*args); end
|
437
|
-
|
438
|
-
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
439
|
-
def except(*args); end
|
296
|
+
class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
297
|
+
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
298
|
+
include SpellBook::HABTM_Spells::CustomFinderMethods
|
299
|
+
include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
300
|
+
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
301
|
+
end
|
440
302
|
|
441
|
-
|
442
|
-
|
303
|
+
class SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
304
|
+
include SpellBook::HABTM_Spells::CustomFinderMethods
|
305
|
+
include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
306
|
+
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
443
307
|
|
444
308
|
sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
|
445
309
|
def <<(*records); end
|