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
@@ -3,8 +3,6 @@
|
|
3
3
|
|
4
4
|
# typed: strong
|
5
5
|
module Wand::EnumInstanceMethods
|
6
|
-
extend T::Sig
|
7
|
-
|
8
6
|
sig { returns(T::Boolean) }
|
9
7
|
def phoenix_feather?; end
|
10
8
|
|
@@ -36,8 +34,6 @@ module Wand::ActiveRelation_WhereNot
|
|
36
34
|
end
|
37
35
|
|
38
36
|
module Wand::GeneratedAttributeMethods
|
39
|
-
extend T::Sig
|
40
|
-
|
41
37
|
sig { returns(T::Boolean) }
|
42
38
|
def broken; end
|
43
39
|
|
@@ -176,17 +172,15 @@ end
|
|
176
172
|
|
177
173
|
class Wand::CoreType < T::Enum
|
178
174
|
enums do
|
179
|
-
PhoenixFeather = new(
|
180
|
-
DragonHeartstring = new(
|
181
|
-
UnicornTailHair = new(
|
182
|
-
BasiliskHorn = new(
|
175
|
+
PhoenixFeather = new(%q{phoenix_feather})
|
176
|
+
DragonHeartstring = new(%q{dragon_heartstring})
|
177
|
+
UnicornTailHair = new(%q{unicorn_tail_hair})
|
178
|
+
BasiliskHorn = new(%q{basilisk_horn})
|
183
179
|
end
|
184
180
|
|
185
181
|
end
|
186
182
|
|
187
183
|
module Wand::GeneratedAssociationMethods
|
188
|
-
extend T::Sig
|
189
|
-
|
190
184
|
sig { returns(::Wizard) }
|
191
185
|
def wizard; end
|
192
186
|
|
@@ -216,8 +210,7 @@ class Wand < ApplicationRecord
|
|
216
210
|
include Wand::GeneratedAttributeMethods
|
217
211
|
include Wand::GeneratedAssociationMethods
|
218
212
|
extend Wand::CustomFinderMethods
|
219
|
-
extend
|
220
|
-
extend T::Generic
|
213
|
+
extend Wand::QueryMethodsReturningRelation
|
221
214
|
RelationType = T.type_alias { T.any(Wand::ActiveRecord_Relation, Wand::ActiveRecord_Associations_CollectionProxy, Wand::ActiveRecord_AssociationRelation) }
|
222
215
|
|
223
216
|
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
@@ -247,165 +240,121 @@ class Wand < ApplicationRecord
|
|
247
240
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
248
241
|
def self.unicorn_tail_hair(*args); end
|
249
242
|
|
250
|
-
sig { returns(Wand::
|
251
|
-
def
|
252
|
-
|
253
|
-
sig { params(block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
254
|
-
def self.unscoped(&block); end
|
255
|
-
|
256
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
257
|
-
def self.select(*args); end
|
258
|
-
|
259
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
260
|
-
def self.reselect(*args); end
|
261
|
-
|
262
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
263
|
-
def self.order(*args); end
|
264
|
-
|
265
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
266
|
-
def self.reorder(*args); end
|
267
|
-
|
268
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
269
|
-
def self.group(*args); end
|
270
|
-
|
271
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
272
|
-
def self.limit(*args); end
|
273
|
-
|
274
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
275
|
-
def self.offset(*args); end
|
276
|
-
|
277
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
278
|
-
def self.joins(*args); end
|
279
|
-
|
280
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
281
|
-
def self.left_joins(*args); end
|
282
|
-
|
283
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
284
|
-
def self.left_outer_joins(*args); end
|
285
|
-
|
286
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
287
|
-
def self.where(*args); end
|
288
|
-
|
289
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
290
|
-
def self.rewhere(*args); end
|
291
|
-
|
292
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
293
|
-
def self.preload(*args); end
|
294
|
-
|
295
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
296
|
-
def self.extract_associated(*args); end
|
297
|
-
|
298
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
299
|
-
def self.eager_load(*args); end
|
300
|
-
|
301
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
302
|
-
def self.includes(*args); end
|
303
|
-
|
304
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
305
|
-
def self.from(*args); end
|
306
|
-
|
307
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
308
|
-
def self.lock(*args); end
|
309
|
-
|
310
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
311
|
-
def self.readonly(*args); end
|
243
|
+
sig { returns(T.nilable(Wand::CoreType)) }
|
244
|
+
def typed_core_type; end
|
312
245
|
|
313
|
-
sig { params(
|
314
|
-
def
|
246
|
+
sig { params(value: T.nilable(Wand::CoreType)).void }
|
247
|
+
def typed_core_type=(value); end
|
315
248
|
|
316
|
-
sig {
|
317
|
-
def self.
|
249
|
+
sig { returns(T::Array[Wand]) }
|
250
|
+
def self.mythicals; end
|
251
|
+
end
|
318
252
|
|
319
|
-
|
320
|
-
|
253
|
+
class Wand::ActiveRecord_Relation < ActiveRecord::Relation
|
254
|
+
include Wand::ActiveRelation_WhereNot
|
255
|
+
include Wand::CustomFinderMethods
|
256
|
+
include Wand::QueryMethodsReturningRelation
|
257
|
+
Elem = type_member(fixed: Wand)
|
321
258
|
|
322
259
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
323
|
-
def
|
260
|
+
def basilisk_horn(*args); end
|
324
261
|
|
325
262
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
326
|
-
def
|
263
|
+
def dragon_heartstring(*args); end
|
327
264
|
|
328
265
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
329
|
-
def
|
266
|
+
def not_basilisk_horn(*args); end
|
330
267
|
|
331
268
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
332
|
-
def
|
269
|
+
def not_dragon_heartstring(*args); end
|
333
270
|
|
334
271
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
335
|
-
def
|
272
|
+
def not_phoenix_feather(*args); end
|
336
273
|
|
337
274
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
338
|
-
def
|
275
|
+
def not_unicorn_tail_hair(*args); end
|
339
276
|
|
340
277
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
341
|
-
def
|
278
|
+
def phoenix_feather(*args); end
|
342
279
|
|
343
280
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
344
|
-
def
|
345
|
-
|
346
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
347
|
-
def self.extending(*args, &block); end
|
281
|
+
def unicorn_tail_hair(*args); end
|
282
|
+
end
|
348
283
|
|
349
|
-
|
350
|
-
|
284
|
+
class Wand::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
285
|
+
include Wand::ActiveRelation_WhereNot
|
286
|
+
include Wand::CustomFinderMethods
|
287
|
+
include Wand::QueryMethodsReturningAssociationRelation
|
288
|
+
Elem = type_member(fixed: Wand)
|
351
289
|
|
352
|
-
sig { params(
|
353
|
-
def
|
290
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
291
|
+
def basilisk_horn(*args); end
|
354
292
|
|
355
|
-
sig { params(
|
356
|
-
def
|
293
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
294
|
+
def dragon_heartstring(*args); end
|
357
295
|
|
358
|
-
sig { params(args: T.untyped).returns(
|
359
|
-
def
|
296
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
297
|
+
def not_basilisk_horn(*args); end
|
360
298
|
|
361
|
-
sig { params(args: T.untyped).returns(
|
362
|
-
def
|
299
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
300
|
+
def not_dragon_heartstring(*args); end
|
363
301
|
|
364
|
-
sig { params(args: T.untyped).returns(
|
365
|
-
def
|
302
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
303
|
+
def not_phoenix_feather(*args); end
|
366
304
|
|
367
|
-
sig { params(args: T.untyped).returns(
|
368
|
-
def
|
305
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
306
|
+
def not_unicorn_tail_hair(*args); end
|
369
307
|
|
370
|
-
sig { params(args: T.untyped).returns(
|
371
|
-
def
|
308
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
309
|
+
def phoenix_feather(*args); end
|
372
310
|
|
373
|
-
sig { returns(
|
374
|
-
def
|
311
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
312
|
+
def unicorn_tail_hair(*args); end
|
375
313
|
end
|
376
314
|
|
377
|
-
class Wand::
|
378
|
-
include Wand::ActiveRelation_WhereNot
|
315
|
+
class Wand::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
379
316
|
include Wand::CustomFinderMethods
|
380
|
-
include
|
381
|
-
extend T::Sig
|
382
|
-
extend T::Generic
|
317
|
+
include Wand::QueryMethodsReturningAssociationRelation
|
383
318
|
Elem = type_member(fixed: Wand)
|
384
319
|
|
385
|
-
sig { params(args: T.untyped).returns(Wand::
|
320
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
386
321
|
def basilisk_horn(*args); end
|
387
322
|
|
388
|
-
sig { params(args: T.untyped).returns(Wand::
|
323
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
389
324
|
def dragon_heartstring(*args); end
|
390
325
|
|
391
|
-
sig { params(args: T.untyped).returns(Wand::
|
326
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
392
327
|
def not_basilisk_horn(*args); end
|
393
328
|
|
394
|
-
sig { params(args: T.untyped).returns(Wand::
|
329
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
395
330
|
def not_dragon_heartstring(*args); end
|
396
331
|
|
397
|
-
sig { params(args: T.untyped).returns(Wand::
|
332
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
398
333
|
def not_phoenix_feather(*args); end
|
399
334
|
|
400
|
-
sig { params(args: T.untyped).returns(Wand::
|
335
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
401
336
|
def not_unicorn_tail_hair(*args); end
|
402
337
|
|
403
|
-
sig { params(args: T.untyped).returns(Wand::
|
338
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
404
339
|
def phoenix_feather(*args); end
|
405
340
|
|
406
|
-
sig { params(args: T.untyped).returns(Wand::
|
341
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
407
342
|
def unicorn_tail_hair(*args); end
|
408
343
|
|
344
|
+
sig { params(records: T.any(Wand, T::Array[Wand])).returns(T.self_type) }
|
345
|
+
def <<(*records); end
|
346
|
+
|
347
|
+
sig { params(records: T.any(Wand, T::Array[Wand])).returns(T.self_type) }
|
348
|
+
def append(*records); end
|
349
|
+
|
350
|
+
sig { params(records: T.any(Wand, T::Array[Wand])).returns(T.self_type) }
|
351
|
+
def push(*records); end
|
352
|
+
|
353
|
+
sig { params(records: T.any(Wand, T::Array[Wand])).returns(T.self_type) }
|
354
|
+
def concat(*records); end
|
355
|
+
end
|
356
|
+
|
357
|
+
module Wand::QueryMethodsReturningRelation
|
409
358
|
sig { returns(Wand::ActiveRecord_Relation) }
|
410
359
|
def all; end
|
411
360
|
|
@@ -505,281 +454,24 @@ class Wand::ActiveRecord_Relation < ActiveRecord::Relation
|
|
505
454
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
506
455
|
def extending(*args, &block); end
|
507
456
|
|
508
|
-
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
509
|
-
def exists?(conditions = nil); end
|
510
|
-
|
511
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
512
|
-
def any?(*args); end
|
513
|
-
|
514
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
515
|
-
def many?(*args); end
|
516
|
-
|
517
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
518
|
-
def none?(*args); end
|
519
|
-
|
520
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
521
|
-
def one?(*args); end
|
522
|
-
|
523
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
524
|
-
def empty?(*args); end
|
525
|
-
end
|
526
|
-
|
527
|
-
class Wand::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
528
|
-
include Wand::ActiveRelation_WhereNot
|
529
|
-
include Wand::CustomFinderMethods
|
530
|
-
include Enumerable
|
531
|
-
extend T::Sig
|
532
|
-
extend T::Generic
|
533
|
-
Elem = type_member(fixed: Wand)
|
534
|
-
|
535
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
536
|
-
def basilisk_horn(*args); end
|
537
|
-
|
538
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
539
|
-
def dragon_heartstring(*args); end
|
540
|
-
|
541
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
542
|
-
def not_basilisk_horn(*args); end
|
543
|
-
|
544
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
545
|
-
def not_dragon_heartstring(*args); end
|
546
|
-
|
547
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
548
|
-
def not_phoenix_feather(*args); end
|
549
|
-
|
550
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
551
|
-
def not_unicorn_tail_hair(*args); end
|
552
|
-
|
553
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
554
|
-
def phoenix_feather(*args); end
|
555
|
-
|
556
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
557
|
-
def unicorn_tail_hair(*args); end
|
558
|
-
|
559
|
-
sig { returns(Wand::ActiveRecord_AssociationRelation) }
|
560
|
-
def all; end
|
561
|
-
|
562
|
-
sig { params(block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
563
|
-
def unscoped(&block); end
|
564
|
-
|
565
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
566
|
-
def select(*args); end
|
567
|
-
|
568
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
569
|
-
def reselect(*args); end
|
570
|
-
|
571
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
572
|
-
def order(*args); end
|
573
|
-
|
574
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
575
|
-
def reorder(*args); end
|
576
|
-
|
577
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
578
|
-
def group(*args); end
|
579
|
-
|
580
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
581
|
-
def limit(*args); end
|
582
|
-
|
583
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
584
|
-
def offset(*args); end
|
585
|
-
|
586
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
587
|
-
def joins(*args); end
|
588
|
-
|
589
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
590
|
-
def left_joins(*args); end
|
591
|
-
|
592
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
593
|
-
def left_outer_joins(*args); end
|
594
|
-
|
595
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
596
|
-
def where(*args); end
|
597
|
-
|
598
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
599
|
-
def rewhere(*args); end
|
600
|
-
|
601
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
602
|
-
def preload(*args); end
|
603
|
-
|
604
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
605
|
-
def extract_associated(*args); end
|
606
|
-
|
607
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
608
|
-
def eager_load(*args); end
|
609
|
-
|
610
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
611
|
-
def includes(*args); end
|
612
|
-
|
613
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
614
|
-
def from(*args); end
|
615
|
-
|
616
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
617
|
-
def lock(*args); end
|
618
|
-
|
619
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
620
|
-
def readonly(*args); end
|
621
|
-
|
622
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
623
|
-
def or(*args); end
|
624
|
-
|
625
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
626
|
-
def having(*args); end
|
627
|
-
|
628
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
629
|
-
def create_with(*args); end
|
630
|
-
|
631
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
632
|
-
def distinct(*args); end
|
633
|
-
|
634
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
635
|
-
def references(*args); end
|
636
|
-
|
637
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
638
|
-
def none(*args); end
|
639
|
-
|
640
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
641
|
-
def unscope(*args); end
|
642
|
-
|
643
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
644
|
-
def optimizer_hints(*args); end
|
645
|
-
|
646
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
647
|
-
def merge(*args); end
|
648
|
-
|
649
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
650
|
-
def except(*args); end
|
651
|
-
|
652
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
653
|
-
def only(*args); end
|
654
|
-
|
655
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
656
|
-
def extending(*args, &block); end
|
657
|
-
|
658
|
-
sig { params(args: T.untyped).returns(Wand) }
|
659
|
-
def find(*args); end
|
660
|
-
|
661
|
-
sig { params(args: T.untyped).returns(T.nilable(Wand)) }
|
662
|
-
def find_by(*args); end
|
663
|
-
|
664
|
-
sig { params(args: T.untyped).returns(Wand) }
|
665
|
-
def find_by!(*args); end
|
666
|
-
|
667
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Wand).void)).returns(Wand) }
|
668
|
-
def find_or_initialize_by(attributes, &block); end
|
669
|
-
|
670
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Wand).void)).returns(Wand) }
|
671
|
-
def find_or_create_by(attributes, &block); end
|
672
|
-
|
673
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Wand).void)).returns(Wand) }
|
674
|
-
def find_or_create_by!(attributes, &block); end
|
675
|
-
|
676
|
-
sig { returns(T.nilable(Wand)) }
|
677
|
-
def first; end
|
678
|
-
|
679
|
-
sig { returns(Wand) }
|
680
|
-
def first!; end
|
681
|
-
|
682
|
-
sig { returns(T.nilable(Wand)) }
|
683
|
-
def second; end
|
684
|
-
|
685
|
-
sig { returns(Wand) }
|
686
|
-
def second!; end
|
687
|
-
|
688
|
-
sig { returns(T.nilable(Wand)) }
|
689
|
-
def third; end
|
690
|
-
|
691
|
-
sig { returns(Wand) }
|
692
|
-
def third!; end
|
693
|
-
|
694
|
-
sig { returns(T.nilable(Wand)) }
|
695
|
-
def third_to_last; end
|
696
|
-
|
697
|
-
sig { returns(Wand) }
|
698
|
-
def third_to_last!; end
|
699
|
-
|
700
|
-
sig { returns(T.nilable(Wand)) }
|
701
|
-
def second_to_last; end
|
702
|
-
|
703
|
-
sig { returns(Wand) }
|
704
|
-
def second_to_last!; end
|
705
|
-
|
706
|
-
sig { returns(T.nilable(Wand)) }
|
707
|
-
def last; end
|
708
|
-
|
709
|
-
sig { returns(Wand) }
|
710
|
-
def last!; end
|
711
|
-
|
712
|
-
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
713
|
-
def exists?(conditions = nil); end
|
714
|
-
|
715
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
716
|
-
def any?(*args); end
|
717
|
-
|
718
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
719
|
-
def many?(*args); end
|
720
|
-
|
721
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
722
|
-
def none?(*args); end
|
723
|
-
|
724
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
725
|
-
def one?(*args); end
|
726
|
-
|
727
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
728
|
-
def empty?(*args); end
|
729
|
-
|
730
|
-
sig { override.params(block: T.proc.params(e: Wand).void).returns(T::Array[Wand]) }
|
731
|
-
def each(&block); end
|
732
|
-
|
733
|
-
sig { params(level: T.nilable(Integer)).returns(T::Array[Wand]) }
|
734
|
-
def flatten(level); end
|
735
|
-
|
736
|
-
sig { returns(T::Array[Wand]) }
|
737
|
-
def to_a; end
|
738
|
-
|
739
457
|
sig do
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
458
|
+
params(
|
459
|
+
of: T.nilable(Integer),
|
460
|
+
start: T.nilable(Integer),
|
461
|
+
finish: T.nilable(Integer),
|
462
|
+
load: T.nilable(T::Boolean),
|
463
|
+
error_on_ignore: T.nilable(T::Boolean),
|
464
|
+
block: T.nilable(T.proc.params(e: Wand::ActiveRecord_Relation).void)
|
465
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
744
466
|
end
|
745
|
-
def
|
467
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
746
468
|
end
|
747
469
|
|
748
|
-
|
749
|
-
include Wand::CustomFinderMethods
|
750
|
-
include Enumerable
|
751
|
-
extend T::Sig
|
752
|
-
extend T::Generic
|
753
|
-
Elem = type_member(fixed: Wand)
|
754
|
-
|
755
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
756
|
-
def basilisk_horn(*args); end
|
757
|
-
|
758
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
759
|
-
def dragon_heartstring(*args); end
|
760
|
-
|
761
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
762
|
-
def not_basilisk_horn(*args); end
|
763
|
-
|
764
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
765
|
-
def not_dragon_heartstring(*args); end
|
766
|
-
|
767
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
768
|
-
def not_phoenix_feather(*args); end
|
769
|
-
|
770
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
771
|
-
def not_unicorn_tail_hair(*args); end
|
772
|
-
|
773
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
774
|
-
def phoenix_feather(*args); end
|
775
|
-
|
776
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
777
|
-
def unicorn_tail_hair(*args); end
|
778
|
-
|
470
|
+
module Wand::QueryMethodsReturningAssociationRelation
|
779
471
|
sig { returns(Wand::ActiveRecord_AssociationRelation) }
|
780
472
|
def all; end
|
781
473
|
|
782
|
-
sig { params(block: T.nilable(T.proc.void)).returns(Wand::
|
474
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
783
475
|
def unscoped(&block); end
|
784
476
|
|
785
477
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
@@ -875,104 +567,15 @@ class Wand::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associatio
|
|
875
567
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
876
568
|
def extending(*args, &block); end
|
877
569
|
|
878
|
-
sig { params(args: T.untyped).returns(Wand) }
|
879
|
-
def find(*args); end
|
880
|
-
|
881
|
-
sig { params(args: T.untyped).returns(T.nilable(Wand)) }
|
882
|
-
def find_by(*args); end
|
883
|
-
|
884
|
-
sig { params(args: T.untyped).returns(Wand) }
|
885
|
-
def find_by!(*args); end
|
886
|
-
|
887
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Wand).void)).returns(Wand) }
|
888
|
-
def find_or_initialize_by(attributes, &block); end
|
889
|
-
|
890
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Wand).void)).returns(Wand) }
|
891
|
-
def find_or_create_by(attributes, &block); end
|
892
|
-
|
893
|
-
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Wand).void)).returns(Wand) }
|
894
|
-
def find_or_create_by!(attributes, &block); end
|
895
|
-
|
896
|
-
sig { returns(T.nilable(Wand)) }
|
897
|
-
def first; end
|
898
|
-
|
899
|
-
sig { returns(Wand) }
|
900
|
-
def first!; end
|
901
|
-
|
902
|
-
sig { returns(T.nilable(Wand)) }
|
903
|
-
def second; end
|
904
|
-
|
905
|
-
sig { returns(Wand) }
|
906
|
-
def second!; end
|
907
|
-
|
908
|
-
sig { returns(T.nilable(Wand)) }
|
909
|
-
def third; end
|
910
|
-
|
911
|
-
sig { returns(Wand) }
|
912
|
-
def third!; end
|
913
|
-
|
914
|
-
sig { returns(T.nilable(Wand)) }
|
915
|
-
def third_to_last; end
|
916
|
-
|
917
|
-
sig { returns(Wand) }
|
918
|
-
def third_to_last!; end
|
919
|
-
|
920
|
-
sig { returns(T.nilable(Wand)) }
|
921
|
-
def second_to_last; end
|
922
|
-
|
923
|
-
sig { returns(Wand) }
|
924
|
-
def second_to_last!; end
|
925
|
-
|
926
|
-
sig { returns(T.nilable(Wand)) }
|
927
|
-
def last; end
|
928
|
-
|
929
|
-
sig { returns(Wand) }
|
930
|
-
def last!; end
|
931
|
-
|
932
|
-
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
933
|
-
def exists?(conditions = nil); end
|
934
|
-
|
935
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
936
|
-
def any?(*args); end
|
937
|
-
|
938
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
939
|
-
def many?(*args); end
|
940
|
-
|
941
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
942
|
-
def none?(*args); end
|
943
|
-
|
944
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
945
|
-
def one?(*args); end
|
946
|
-
|
947
|
-
sig { params(args: T.untyped).returns(T::Boolean) }
|
948
|
-
def empty?(*args); end
|
949
|
-
|
950
|
-
sig { override.params(block: T.proc.params(e: Wand).void).returns(T::Array[Wand]) }
|
951
|
-
def each(&block); end
|
952
|
-
|
953
|
-
sig { params(level: T.nilable(Integer)).returns(T::Array[Wand]) }
|
954
|
-
def flatten(level); end
|
955
|
-
|
956
|
-
sig { returns(T::Array[Wand]) }
|
957
|
-
def to_a; end
|
958
|
-
|
959
570
|
sig do
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
571
|
+
params(
|
572
|
+
of: T.nilable(Integer),
|
573
|
+
start: T.nilable(Integer),
|
574
|
+
finish: T.nilable(Integer),
|
575
|
+
load: T.nilable(T::Boolean),
|
576
|
+
error_on_ignore: T.nilable(T::Boolean),
|
577
|
+
block: T.nilable(T.proc.params(e: Wand::ActiveRecord_AssociationRelation).void)
|
578
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
964
579
|
end
|
965
|
-
def
|
966
|
-
|
967
|
-
sig { params(records: T.any(Wand, T::Array[Wand])).returns(T.self_type) }
|
968
|
-
def <<(*records); end
|
969
|
-
|
970
|
-
sig { params(records: T.any(Wand, T::Array[Wand])).returns(T.self_type) }
|
971
|
-
def append(*records); end
|
972
|
-
|
973
|
-
sig { params(records: T.any(Wand, T::Array[Wand])).returns(T.self_type) }
|
974
|
-
def push(*records); end
|
975
|
-
|
976
|
-
sig { params(records: T.any(Wand, T::Array[Wand])).returns(T.self_type) }
|
977
|
-
def concat(*records); end
|
580
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
978
581
|
end
|