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
File without changes
|
@@ -75,7 +75,7 @@ class ActiveRecord::Base
|
|
75
75
|
def self.first_or_initialize(attributes = nil, &block); end
|
76
76
|
|
77
77
|
sig do
|
78
|
-
|
78
|
+
params(
|
79
79
|
start: T.nilable(Integer),
|
80
80
|
finish: T.nilable(Integer),
|
81
81
|
batch_size: T.nilable(Integer),
|
@@ -86,7 +86,7 @@ class ActiveRecord::Base
|
|
86
86
|
def self.find_each(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, &block); end
|
87
87
|
|
88
88
|
sig do
|
89
|
-
|
89
|
+
params(
|
90
90
|
start: T.nilable(Integer),
|
91
91
|
finish: T.nilable(Integer),
|
92
92
|
batch_size: T.nilable(Integer),
|
@@ -81,7 +81,7 @@ class ActiveRecord::Relation
|
|
81
81
|
def first_or_initialize(attributes = nil, &block); end
|
82
82
|
|
83
83
|
sig do
|
84
|
-
|
84
|
+
params(
|
85
85
|
start: T.nilable(Integer),
|
86
86
|
finish: T.nilable(Integer),
|
87
87
|
batch_size: T.nilable(Integer),
|
@@ -92,7 +92,7 @@ class ActiveRecord::Relation
|
|
92
92
|
def find_each(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, &block); end
|
93
93
|
|
94
94
|
sig do
|
95
|
-
|
95
|
+
params(
|
96
96
|
start: T.nilable(Integer),
|
97
97
|
finish: T.nilable(Integer),
|
98
98
|
batch_size: T.nilable(Integer),
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# == Custom Generator ==
|
3
|
+
# This is an autogenerated file for Rails' jobs.
|
4
|
+
# Please rerun bundle exec rake rails_rbi:jobs to regenerate.
|
5
|
+
class ApplicationJob
|
6
|
+
sig { params(_: T.untyped).void }
|
7
|
+
def self.perform_later(*_); end
|
8
|
+
|
9
|
+
sig { params(_: T.untyped).void }
|
10
|
+
def self.perform_now(*_); end
|
11
|
+
|
12
|
+
sig do
|
13
|
+
params(
|
14
|
+
wait: T.nilable(ActiveSupport::Duration),
|
15
|
+
wait_until: T.nilable(T.any(ActiveSupport::TimeWithZone, Date, Time)),
|
16
|
+
queue: T.nilable(T.any(String, Symbol)),
|
17
|
+
priority: T.nilable(Integer)
|
18
|
+
).returns(T.self_type)
|
19
|
+
end
|
20
|
+
def self.set(wait: nil, wait_until: nil, queue: nil, priority: nil); end
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# == Custom Generator ==
|
3
|
+
# This is an autogenerated file for Rails' jobs.
|
4
|
+
# Please rerun bundle exec rake rails_rbi:jobs to regenerate.
|
5
|
+
class AwardHousePointHourglasses
|
6
|
+
sig { params(student: Wizard, point: Integer).void }
|
7
|
+
def self.perform_later(student:, point:); end
|
8
|
+
|
9
|
+
sig { params(student: Wizard, point: Integer).void }
|
10
|
+
def self.perform_now(student:, point:); end
|
11
|
+
|
12
|
+
sig do
|
13
|
+
params(
|
14
|
+
wait: T.nilable(ActiveSupport::Duration),
|
15
|
+
wait_until: T.nilable(T.any(ActiveSupport::TimeWithZone, Date, Time)),
|
16
|
+
queue: T.nilable(T.any(String, Symbol)),
|
17
|
+
priority: T.nilable(Integer)
|
18
|
+
).returns(T.self_type)
|
19
|
+
end
|
20
|
+
def self.set(wait: nil, wait_until: nil, queue: nil, priority: nil); end
|
21
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# == Custom Generator ==
|
3
|
+
# This is an autogenerated file for Rails' mailers.
|
4
|
+
# Please rerun bundle exec rake rails_rbi:mailers to regenerate.
|
5
|
+
class DailyProphetMailer
|
6
|
+
sig { params(wizards: T::Array[Wizard], hotnews_only: T::Boolean).returns(ActionMailer::MessageDelivery) }
|
7
|
+
def self.notify_subscribers(wizards:, hotnews_only:); end
|
8
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# == Custom Generator ==
|
3
|
+
# This is an autogenerated file for Rails' mailers.
|
4
|
+
# Please rerun bundle exec rake rails_rbi:mailers to regenerate.
|
5
|
+
class HogwartsAcceptanceMailer
|
6
|
+
sig { params(student: Wizard).returns(ActionMailer::MessageDelivery) }
|
7
|
+
def self.notify(student); end
|
8
|
+
|
9
|
+
sig { params(student: T.untyped).returns(ActionMailer::MessageDelivery) }
|
10
|
+
def self.notify_retry(student); end
|
11
|
+
|
12
|
+
sig do
|
13
|
+
params(
|
14
|
+
teacher: Wizard,
|
15
|
+
note: String,
|
16
|
+
student: Wizard,
|
17
|
+
special: T::Boolean
|
18
|
+
).returns(ActionMailer::MessageDelivery)
|
19
|
+
end
|
20
|
+
def self.notify_teacher(teacher, note = nil, student:, special: false); end
|
21
|
+
end
|
@@ -8,8 +8,6 @@ module Headmaster::ActiveRelation_WhereNot
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module Headmaster::GeneratedAttributeMethods
|
11
|
-
extend T::Sig
|
12
|
-
|
13
11
|
sig { returns(Integer) }
|
14
12
|
def id; end
|
15
13
|
|
@@ -39,17 +37,33 @@ module Headmaster::GeneratedAttributeMethods
|
|
39
37
|
end
|
40
38
|
|
41
39
|
module Headmaster::GeneratedAssociationMethods
|
42
|
-
extend T::Sig
|
43
|
-
|
44
40
|
sig { returns(::School) }
|
45
41
|
def school; end
|
46
42
|
|
43
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
44
|
+
def build_school(*args, &block); end
|
45
|
+
|
46
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
47
|
+
def create_school(*args, &block); end
|
48
|
+
|
49
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
50
|
+
def create_school!(*args, &block); end
|
51
|
+
|
47
52
|
sig { params(value: ::School).void }
|
48
53
|
def school=(value); end
|
49
54
|
|
50
55
|
sig { returns(::Wizard) }
|
51
56
|
def wizard; end
|
52
57
|
|
58
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
59
|
+
def build_wizard(*args, &block); end
|
60
|
+
|
61
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
62
|
+
def create_wizard(*args, &block); end
|
63
|
+
|
64
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
65
|
+
def create_wizard!(*args, &block); end
|
66
|
+
|
53
67
|
sig { params(value: ::Wizard).void }
|
54
68
|
def wizard=(value); end
|
55
69
|
end
|
@@ -75,102 +89,11 @@ class Headmaster < ApplicationRecord
|
|
75
89
|
include Headmaster::GeneratedAttributeMethods
|
76
90
|
include Headmaster::GeneratedAssociationMethods
|
77
91
|
extend Headmaster::CustomFinderMethods
|
78
|
-
extend
|
79
|
-
extend T::Generic
|
92
|
+
extend Headmaster::QueryMethodsReturningRelation
|
80
93
|
RelationType = T.type_alias { T.any(Headmaster::ActiveRecord_Relation, Headmaster::ActiveRecord_Associations_CollectionProxy, Headmaster::ActiveRecord_AssociationRelation) }
|
81
|
-
|
82
|
-
sig { returns(Headmaster::ActiveRecord_Relation) }
|
83
|
-
def self.all; end
|
84
|
-
|
85
|
-
sig { params(block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_Relation) }
|
86
|
-
def self.unscoped(&block); end
|
87
|
-
|
88
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
89
|
-
def self.select(*args); end
|
90
|
-
|
91
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
92
|
-
def self.order(*args); end
|
93
|
-
|
94
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
95
|
-
def self.reorder(*args); end
|
96
|
-
|
97
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
98
|
-
def self.group(*args); end
|
99
|
-
|
100
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
101
|
-
def self.limit(*args); end
|
102
|
-
|
103
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
104
|
-
def self.offset(*args); end
|
105
|
-
|
106
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
107
|
-
def self.joins(*args); end
|
108
|
-
|
109
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
110
|
-
def self.left_joins(*args); end
|
111
|
-
|
112
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
113
|
-
def self.left_outer_joins(*args); end
|
114
|
-
|
115
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
116
|
-
def self.where(*args); end
|
117
|
-
|
118
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
119
|
-
def self.rewhere(*args); end
|
120
|
-
|
121
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
122
|
-
def self.preload(*args); end
|
123
|
-
|
124
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
125
|
-
def self.eager_load(*args); end
|
126
|
-
|
127
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
128
|
-
def self.includes(*args); end
|
129
|
-
|
130
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
131
|
-
def self.from(*args); end
|
132
|
-
|
133
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
134
|
-
def self.lock(*args); end
|
135
|
-
|
136
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
137
|
-
def self.readonly(*args); end
|
138
|
-
|
139
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
140
|
-
def self.or(*args); end
|
141
|
-
|
142
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
143
|
-
def self.having(*args); end
|
144
|
-
|
145
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
146
|
-
def self.create_with(*args); end
|
147
|
-
|
148
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
149
|
-
def self.distinct(*args); end
|
150
|
-
|
151
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
152
|
-
def self.references(*args); end
|
153
|
-
|
154
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
155
|
-
def self.none(*args); end
|
156
|
-
|
157
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
158
|
-
def self.unscope(*args); end
|
159
|
-
|
160
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
|
161
|
-
def self.except(*args); end
|
162
|
-
|
163
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_Relation) }
|
164
|
-
def self.extending(*args, &block); end
|
165
94
|
end
|
166
95
|
|
167
|
-
|
168
|
-
include Headmaster::ActiveRelation_WhereNot
|
169
|
-
include Headmaster::CustomFinderMethods
|
170
|
-
extend T::Sig
|
171
|
-
extend T::Generic
|
172
|
-
Elem = type_member(fixed: Headmaster)
|
173
|
-
|
96
|
+
module Headmaster::QueryMethodsReturningRelation
|
174
97
|
sig { returns(Headmaster::ActiveRecord_Relation) }
|
175
98
|
def all; end
|
176
99
|
|
@@ -254,19 +177,25 @@ class Headmaster::ActiveRecord_Relation < ActiveRecord::Relation
|
|
254
177
|
|
255
178
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_Relation) }
|
256
179
|
def extending(*args, &block); end
|
257
|
-
end
|
258
180
|
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
181
|
+
sig do
|
182
|
+
params(
|
183
|
+
of: T.nilable(Integer),
|
184
|
+
start: T.nilable(Integer),
|
185
|
+
finish: T.nilable(Integer),
|
186
|
+
load: T.nilable(T::Boolean),
|
187
|
+
error_on_ignore: T.nilable(T::Boolean),
|
188
|
+
block: T.nilable(T.proc.params(e: Headmaster::ActiveRecord_Relation).void)
|
189
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
190
|
+
end
|
191
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
192
|
+
end
|
265
193
|
|
194
|
+
module Headmaster::QueryMethodsReturningAssociationRelation
|
266
195
|
sig { returns(Headmaster::ActiveRecord_AssociationRelation) }
|
267
196
|
def all; end
|
268
197
|
|
269
|
-
sig { params(block: T.nilable(T.proc.void)).returns(Headmaster::
|
198
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_Relation) }
|
270
199
|
def unscoped(&block); end
|
271
200
|
|
272
201
|
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
@@ -346,97 +275,38 @@ class Headmaster::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRe
|
|
346
275
|
|
347
276
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
348
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: Headmaster::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
|
349
290
|
end
|
350
291
|
|
351
|
-
class Headmaster::
|
292
|
+
class Headmaster::ActiveRecord_Relation < ActiveRecord::Relation
|
293
|
+
include Headmaster::ActiveRelation_WhereNot
|
352
294
|
include Headmaster::CustomFinderMethods
|
353
|
-
|
354
|
-
extend T::Generic
|
295
|
+
include Headmaster::QueryMethodsReturningRelation
|
355
296
|
Elem = type_member(fixed: Headmaster)
|
297
|
+
end
|
356
298
|
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
364
|
-
def select(*args); end
|
365
|
-
|
366
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
367
|
-
def order(*args); end
|
368
|
-
|
369
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
370
|
-
def reorder(*args); end
|
371
|
-
|
372
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
373
|
-
def group(*args); end
|
374
|
-
|
375
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
376
|
-
def limit(*args); end
|
377
|
-
|
378
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
379
|
-
def offset(*args); end
|
380
|
-
|
381
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
382
|
-
def joins(*args); end
|
383
|
-
|
384
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
385
|
-
def left_joins(*args); end
|
386
|
-
|
387
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
388
|
-
def left_outer_joins(*args); end
|
389
|
-
|
390
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
391
|
-
def where(*args); end
|
392
|
-
|
393
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
394
|
-
def rewhere(*args); end
|
395
|
-
|
396
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
397
|
-
def preload(*args); end
|
398
|
-
|
399
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
400
|
-
def eager_load(*args); end
|
401
|
-
|
402
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
403
|
-
def includes(*args); end
|
404
|
-
|
405
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
406
|
-
def from(*args); end
|
407
|
-
|
408
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
409
|
-
def lock(*args); end
|
410
|
-
|
411
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
412
|
-
def readonly(*args); end
|
413
|
-
|
414
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
415
|
-
def or(*args); end
|
416
|
-
|
417
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
418
|
-
def having(*args); end
|
419
|
-
|
420
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
421
|
-
def create_with(*args); end
|
422
|
-
|
423
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
424
|
-
def distinct(*args); end
|
425
|
-
|
426
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
427
|
-
def references(*args); end
|
428
|
-
|
429
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
430
|
-
def none(*args); end
|
431
|
-
|
432
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
433
|
-
def unscope(*args); end
|
434
|
-
|
435
|
-
sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
|
436
|
-
def except(*args); end
|
299
|
+
class Headmaster::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
300
|
+
include Headmaster::ActiveRelation_WhereNot
|
301
|
+
include Headmaster::CustomFinderMethods
|
302
|
+
include Headmaster::QueryMethodsReturningAssociationRelation
|
303
|
+
Elem = type_member(fixed: Headmaster)
|
304
|
+
end
|
437
305
|
|
438
|
-
|
439
|
-
|
306
|
+
class Headmaster::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
307
|
+
include Headmaster::CustomFinderMethods
|
308
|
+
include Headmaster::QueryMethodsReturningAssociationRelation
|
309
|
+
Elem = type_member(fixed: Headmaster)
|
440
310
|
|
441
311
|
sig { params(records: T.any(Headmaster, T::Array[Headmaster])).returns(T.self_type) }
|
442
312
|
def <<(*records); end
|
@@ -8,8 +8,6 @@ module ActiveRecord::InternalMetadata::ActiveRelation_WhereNot
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module ActiveRecord::InternalMetadata::GeneratedAttributeMethods
|
11
|
-
extend T::Sig
|
12
|
-
|
13
11
|
sig { returns(ActiveSupport::TimeWithZone) }
|
14
12
|
def created_at; end
|
15
13
|
|
@@ -67,102 +65,11 @@ end
|
|
67
65
|
class ActiveRecord::InternalMetadata < ActiveRecord::Base
|
68
66
|
include ActiveRecord::InternalMetadata::GeneratedAttributeMethods
|
69
67
|
extend ActiveRecord::InternalMetadata::CustomFinderMethods
|
70
|
-
extend
|
71
|
-
extend T::Generic
|
68
|
+
extend ActiveRecord::InternalMetadata::QueryMethodsReturningRelation
|
72
69
|
RelationType = T.type_alias { T.any(ActiveRecord::InternalMetadata::ActiveRecord_Relation, ActiveRecord::InternalMetadata::ActiveRecord_Associations_CollectionProxy, ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
73
|
-
|
74
|
-
sig { returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
75
|
-
def self.all; end
|
76
|
-
|
77
|
-
sig { params(block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
78
|
-
def self.unscoped(&block); end
|
79
|
-
|
80
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
81
|
-
def self.select(*args); end
|
82
|
-
|
83
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
84
|
-
def self.order(*args); end
|
85
|
-
|
86
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
87
|
-
def self.reorder(*args); end
|
88
|
-
|
89
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
90
|
-
def self.group(*args); end
|
91
|
-
|
92
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
93
|
-
def self.limit(*args); end
|
94
|
-
|
95
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
96
|
-
def self.offset(*args); end
|
97
|
-
|
98
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
99
|
-
def self.joins(*args); end
|
100
|
-
|
101
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
102
|
-
def self.left_joins(*args); end
|
103
|
-
|
104
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
105
|
-
def self.left_outer_joins(*args); end
|
106
|
-
|
107
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
108
|
-
def self.where(*args); end
|
109
|
-
|
110
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
111
|
-
def self.rewhere(*args); end
|
112
|
-
|
113
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
114
|
-
def self.preload(*args); end
|
115
|
-
|
116
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
117
|
-
def self.eager_load(*args); end
|
118
|
-
|
119
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
120
|
-
def self.includes(*args); end
|
121
|
-
|
122
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
123
|
-
def self.from(*args); end
|
124
|
-
|
125
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
126
|
-
def self.lock(*args); end
|
127
|
-
|
128
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
129
|
-
def self.readonly(*args); end
|
130
|
-
|
131
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
132
|
-
def self.or(*args); end
|
133
|
-
|
134
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
135
|
-
def self.having(*args); end
|
136
|
-
|
137
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
138
|
-
def self.create_with(*args); end
|
139
|
-
|
140
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
141
|
-
def self.distinct(*args); end
|
142
|
-
|
143
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
144
|
-
def self.references(*args); end
|
145
|
-
|
146
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
147
|
-
def self.none(*args); end
|
148
|
-
|
149
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
150
|
-
def self.unscope(*args); end
|
151
|
-
|
152
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
153
|
-
def self.except(*args); end
|
154
|
-
|
155
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
156
|
-
def self.extending(*args, &block); end
|
157
70
|
end
|
158
71
|
|
159
|
-
|
160
|
-
include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot
|
161
|
-
include ActiveRecord::InternalMetadata::CustomFinderMethods
|
162
|
-
extend T::Sig
|
163
|
-
extend T::Generic
|
164
|
-
Elem = type_member(fixed: ActiveRecord::InternalMetadata)
|
165
|
-
|
72
|
+
module ActiveRecord::InternalMetadata::QueryMethodsReturningRelation
|
166
73
|
sig { returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
167
74
|
def all; end
|
168
75
|
|
@@ -246,19 +153,25 @@ class ActiveRecord::InternalMetadata::ActiveRecord_Relation < ActiveRecord::Rela
|
|
246
153
|
|
247
154
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
248
155
|
def extending(*args, &block); end
|
249
|
-
end
|
250
156
|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
157
|
+
sig do
|
158
|
+
params(
|
159
|
+
of: T.nilable(Integer),
|
160
|
+
start: T.nilable(Integer),
|
161
|
+
finish: T.nilable(Integer),
|
162
|
+
load: T.nilable(T::Boolean),
|
163
|
+
error_on_ignore: T.nilable(T::Boolean),
|
164
|
+
block: T.nilable(T.proc.params(e: ActiveRecord::InternalMetadata::ActiveRecord_Relation).void)
|
165
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
166
|
+
end
|
167
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
168
|
+
end
|
257
169
|
|
170
|
+
module ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
|
258
171
|
sig { returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
259
172
|
def all; end
|
260
173
|
|
261
|
-
sig { params(block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::
|
174
|
+
sig { params(block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
262
175
|
def unscoped(&block); end
|
263
176
|
|
264
177
|
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
@@ -338,97 +251,38 @@ class ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation < ActiveR
|
|
338
251
|
|
339
252
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
340
253
|
def extending(*args, &block); end
|
254
|
+
|
255
|
+
sig do
|
256
|
+
params(
|
257
|
+
of: T.nilable(Integer),
|
258
|
+
start: T.nilable(Integer),
|
259
|
+
finish: T.nilable(Integer),
|
260
|
+
load: T.nilable(T::Boolean),
|
261
|
+
error_on_ignore: T.nilable(T::Boolean),
|
262
|
+
block: T.nilable(T.proc.params(e: ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation).void)
|
263
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
264
|
+
end
|
265
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
341
266
|
end
|
342
267
|
|
343
|
-
class ActiveRecord::InternalMetadata::
|
268
|
+
class ActiveRecord::InternalMetadata::ActiveRecord_Relation < ActiveRecord::Relation
|
269
|
+
include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot
|
344
270
|
include ActiveRecord::InternalMetadata::CustomFinderMethods
|
345
|
-
|
346
|
-
extend T::Generic
|
271
|
+
include ActiveRecord::InternalMetadata::QueryMethodsReturningRelation
|
347
272
|
Elem = type_member(fixed: ActiveRecord::InternalMetadata)
|
273
|
+
end
|
348
274
|
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
356
|
-
def select(*args); end
|
357
|
-
|
358
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
359
|
-
def order(*args); end
|
360
|
-
|
361
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
362
|
-
def reorder(*args); end
|
363
|
-
|
364
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
365
|
-
def group(*args); end
|
366
|
-
|
367
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
368
|
-
def limit(*args); end
|
369
|
-
|
370
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
371
|
-
def offset(*args); end
|
372
|
-
|
373
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
374
|
-
def joins(*args); end
|
375
|
-
|
376
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
377
|
-
def left_joins(*args); end
|
378
|
-
|
379
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
380
|
-
def left_outer_joins(*args); end
|
381
|
-
|
382
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
383
|
-
def where(*args); end
|
384
|
-
|
385
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
386
|
-
def rewhere(*args); end
|
387
|
-
|
388
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
389
|
-
def preload(*args); end
|
390
|
-
|
391
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
392
|
-
def eager_load(*args); end
|
393
|
-
|
394
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
395
|
-
def includes(*args); end
|
396
|
-
|
397
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
398
|
-
def from(*args); end
|
399
|
-
|
400
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
401
|
-
def lock(*args); end
|
402
|
-
|
403
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
404
|
-
def readonly(*args); end
|
405
|
-
|
406
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
407
|
-
def or(*args); end
|
408
|
-
|
409
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
410
|
-
def having(*args); end
|
411
|
-
|
412
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
413
|
-
def create_with(*args); end
|
414
|
-
|
415
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
416
|
-
def distinct(*args); end
|
417
|
-
|
418
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
419
|
-
def references(*args); end
|
420
|
-
|
421
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
422
|
-
def none(*args); end
|
423
|
-
|
424
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
425
|
-
def unscope(*args); end
|
426
|
-
|
427
|
-
sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
428
|
-
def except(*args); end
|
275
|
+
class ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
276
|
+
include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot
|
277
|
+
include ActiveRecord::InternalMetadata::CustomFinderMethods
|
278
|
+
include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
|
279
|
+
Elem = type_member(fixed: ActiveRecord::InternalMetadata)
|
280
|
+
end
|
429
281
|
|
430
|
-
|
431
|
-
|
282
|
+
class ActiveRecord::InternalMetadata::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
283
|
+
include ActiveRecord::InternalMetadata::CustomFinderMethods
|
284
|
+
include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
|
285
|
+
Elem = type_member(fixed: ActiveRecord::InternalMetadata)
|
432
286
|
|
433
287
|
sig { params(records: T.any(ActiveRecord::InternalMetadata, T::Array[ActiveRecord::InternalMetadata])).returns(T.self_type) }
|
434
288
|
def <<(*records); end
|