sorbet-rails 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/README.md +3 -3
- data/lib/bundled_rbi/typed_enum.rbi +7 -0
- data/lib/sorbet-rails.rb +0 -2
- data/lib/sorbet-rails/active_record_rbi_formatter.rb +301 -0
- data/lib/sorbet-rails/config.rb +0 -1
- data/lib/sorbet-rails/dependent_gem_rbis/activerecord.rbi +11 -0
- data/lib/sorbet-rails/deprecation.rb +5 -0
- data/lib/sorbet-rails/gem_plugins/active_flag_plugin.rb +0 -1
- data/lib/sorbet-rails/gem_plugins/paperclip_plugin.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +36 -8
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +20 -9
- data/lib/sorbet-rails/model_plugins/active_record_enum.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_named_scope.rb +15 -6
- data/lib/sorbet-rails/model_plugins/active_record_querying.rb +34 -3
- data/lib/sorbet-rails/model_plugins/active_storage_methods.rb +1 -1
- data/lib/sorbet-rails/model_plugins/base.rb +10 -0
- data/lib/sorbet-rails/model_plugins/enumerable_collections.rb +0 -50
- data/lib/sorbet-rails/model_plugins/plugins.rb +0 -3
- data/lib/sorbet-rails/model_rbi_formatter.rb +6 -10
- data/lib/sorbet-rails/model_utils.rb +83 -36
- data/lib/sorbet-rails/rails_mixins/generated_url_helpers.rb +2 -3
- data/lib/sorbet-rails/railtie.rb +0 -2
- data/lib/sorbet-rails/tasks/rails_rbi.rake +32 -24
- data/sorbet-rails.gemspec +2 -2
- data/spec/active_record_rbi_formatter_spec.rb +24 -0
- data/spec/generators/rails-template.rb +90 -6
- data/spec/generators/sorbet_test_cases.rb +204 -122
- data/spec/model_rbi_formatter_spec.rb +1 -1
- data/spec/rails_helper.rb +14 -1
- data/spec/rake_rails_rbi_active_record_spec.rb +21 -0
- data/spec/rake_rails_rbi_models_spec.rb +7 -0
- data/spec/sorbet_spec.rb +12 -1
- data/spec/support/v5.0/Gemfile.lock +8 -8
- data/spec/support/v5.0/app/models/headmaster.rb +8 -0
- data/spec/support/v5.0/app/models/school.rb +2 -0
- data/spec/support/v5.0/app/models/spell.rb +5 -0
- data/spec/support/v5.0/app/models/spell_book.rb +5 -0
- data/spec/support/v5.0/app/models/subject.rb +5 -0
- data/spec/support/v5.0/app/models/wizard.rb +6 -1
- data/spec/support/v5.0/db/migrate/20190620000010_add_subject.rb +8 -0
- data/spec/support/v5.0/db/migrate/20190620000011_add_subjects_wizards.rb +8 -0
- data/spec/support/v5.0/db/migrate/20190620000012_add_spell.rb +8 -0
- data/spec/support/v5.0/db/migrate/20190620000013_add_spells_spell_books.rb +8 -0
- data/spec/support/v5.0/db/migrate/20190620000014_create_headmasters.rb +9 -0
- data/spec/support/v5.0/db/schema.rb +28 -1
- data/spec/support/v5.0/lib/mythical_rbi_plugin.rb +1 -1
- data/spec/support/v5.0/sorbet_test_cases.rb +204 -122
- data/spec/support/v5.1/Gemfile.lock +8 -8
- data/spec/support/v5.1/app/models/headmaster.rb +8 -0
- data/spec/support/v5.1/app/models/school.rb +2 -0
- data/spec/support/v5.1/app/models/spell.rb +5 -0
- data/spec/support/v5.1/app/models/spell_book.rb +5 -0
- data/spec/support/v5.1/app/models/subject.rb +5 -0
- data/spec/support/v5.1/app/models/wizard.rb +6 -1
- data/spec/support/v5.1/db/migrate/20190620000010_add_subject.rb +8 -0
- data/spec/support/v5.1/db/migrate/20190620000011_add_subjects_wizards.rb +8 -0
- data/spec/support/v5.1/db/migrate/20190620000012_add_spell.rb +8 -0
- data/spec/support/v5.1/db/migrate/20190620000013_add_spells_spell_books.rb +8 -0
- data/spec/support/v5.1/db/migrate/20190620000014_create_headmasters.rb +9 -0
- data/spec/support/v5.1/db/schema.rb +28 -1
- data/spec/support/v5.1/lib/mythical_rbi_plugin.rb +1 -1
- data/spec/support/v5.1/sorbet_test_cases.rb +204 -122
- data/spec/support/v5.2/Gemfile +1 -1
- data/spec/support/v5.2/Gemfile.lock +9 -9
- data/spec/support/v5.2/app/models/headmaster.rb +8 -0
- data/spec/support/v5.2/app/models/school.rb +2 -0
- data/spec/support/v5.2/app/models/spell.rb +5 -0
- data/spec/support/v5.2/app/models/spell_book.rb +5 -0
- data/spec/support/v5.2/app/models/subject.rb +5 -0
- data/spec/support/v5.2/app/models/wizard.rb +5 -0
- data/spec/support/v5.2/config/puma.rb +3 -0
- data/spec/support/v5.2/db/migrate/20190620000010_add_subject.rb +8 -0
- data/spec/support/v5.2/db/migrate/20190620000011_add_subjects_wizards.rb +8 -0
- data/spec/support/v5.2/db/migrate/20190620000012_add_spell.rb +8 -0
- data/spec/support/v5.2/db/migrate/20190620000013_add_spells_spell_books.rb +8 -0
- data/spec/support/v5.2/db/migrate/20190620000014_create_headmasters.rb +9 -0
- data/spec/support/v5.2/db/schema.rb +28 -1
- data/spec/support/v5.2/lib/mythical_rbi_plugin.rb +1 -1
- data/spec/support/v5.2/sorbet_test_cases.rb +204 -122
- data/spec/support/v6.0/Gemfile.lock +8 -8
- data/spec/support/v6.0/app/models/headmaster.rb +8 -0
- data/spec/support/v6.0/app/models/school.rb +2 -0
- data/spec/support/v6.0/app/models/spell.rb +5 -0
- data/spec/support/v6.0/app/models/spell_book.rb +5 -0
- data/spec/support/v6.0/app/models/subject.rb +5 -0
- data/spec/support/v6.0/app/models/wizard.rb +6 -1
- data/spec/support/v6.0/db/migrate/20190620000010_add_subject.rb +8 -0
- data/spec/support/v6.0/db/migrate/20190620000011_add_subjects_wizards.rb +8 -0
- data/spec/support/v6.0/db/migrate/20190620000012_add_spell.rb +8 -0
- data/spec/support/v6.0/db/migrate/20190620000013_add_spells_spell_books.rb +8 -0
- data/spec/support/v6.0/db/migrate/20190620000014_create_headmasters.rb +9 -0
- data/spec/support/v6.0/db/schema.rb +28 -1
- data/spec/support/v6.0/lib/mythical_rbi_plugin.rb +1 -1
- data/spec/support/v6.0/sorbet_test_cases.rb +204 -122
- data/spec/test_data/v5.0/expected_active_record_base.rbi +113 -0
- data/spec/test_data/v5.0/expected_active_record_relation.rbi +199 -0
- data/spec/test_data/v5.0/expected_habtm_subjects.rbi +660 -0
- data/spec/test_data/v5.0/expected_habtm_wizards.rbi +660 -0
- data/spec/test_data/v5.0/expected_headmaster.rbi +304 -0
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +38 -401
- data/spec/test_data/v5.0/expected_potion.rbi +38 -401
- data/spec/test_data/v5.0/expected_robe.rbi +38 -403
- data/spec/test_data/v5.0/expected_schema_migration.rbi +38 -401
- data/spec/test_data/v5.0/expected_school.rbi +47 -401
- data/spec/test_data/v5.0/expected_spell.rbi +292 -0
- data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +295 -0
- data/spec/test_data/v5.0/expected_spell_book.rbi +86 -432
- data/spec/test_data/v5.0/expected_spell_book/habtm_spell_books.rbi +637 -0
- data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +295 -0
- data/spec/test_data/v5.0/expected_squib.rbi +122 -477
- data/spec/test_data/v5.0/expected_subject.rbi +292 -0
- data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +295 -0
- data/spec/test_data/v5.0/expected_wand.rbi +75 -442
- data/spec/test_data/v5.0/expected_wizard.rbi +144 -498
- data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +295 -0
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +138 -498
- data/spec/test_data/v5.1/expected_active_record_base.rbi +113 -0
- data/spec/test_data/v5.1/expected_active_record_relation.rbi +178 -0
- data/spec/test_data/v5.1/expected_habtm_subjects.rbi +672 -0
- data/spec/test_data/v5.1/expected_habtm_wizards.rbi +672 -0
- data/spec/test_data/v5.1/expected_headmaster.rbi +310 -0
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +38 -407
- data/spec/test_data/v5.1/expected_potion.rbi +38 -407
- data/spec/test_data/v5.1/expected_robe.rbi +38 -409
- data/spec/test_data/v5.1/expected_schema_migration.rbi +38 -407
- data/spec/test_data/v5.1/expected_school.rbi +47 -407
- data/spec/test_data/v5.1/expected_spell.rbi +298 -0
- data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +301 -0
- data/spec/test_data/v5.1/expected_spell_book.rbi +86 -438
- data/spec/test_data/v5.1/expected_spell_book/habtm_spell_books.rbi +649 -0
- data/spec/test_data/v5.1/expected_spell_book/habtm_spells.rbi +301 -0
- data/spec/test_data/v5.1/expected_squib.rbi +123 -484
- data/spec/test_data/v5.1/expected_subject.rbi +298 -0
- data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +301 -0
- data/spec/test_data/v5.1/expected_wand.rbi +75 -448
- data/spec/test_data/v5.1/expected_wizard.rbi +145 -505
- data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +301 -0
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +139 -505
- data/spec/test_data/v5.2/expected_active_record_base.rbi +113 -0
- data/spec/test_data/v5.2/expected_active_record_relation.rbi +175 -0
- data/spec/test_data/v5.2/expected_attachment.rbi +38 -407
- data/spec/test_data/v5.2/expected_blob.rbi +60 -426
- data/spec/test_data/v5.2/expected_habtm_subjects.rbi +672 -0
- data/spec/test_data/v5.2/expected_habtm_wizards.rbi +672 -0
- data/spec/test_data/v5.2/expected_headmaster.rbi +310 -0
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +38 -407
- data/spec/test_data/v5.2/expected_potion.rbi +38 -407
- data/spec/test_data/v5.2/expected_robe.rbi +38 -409
- data/spec/test_data/v5.2/expected_schema_migration.rbi +38 -407
- data/spec/test_data/v5.2/expected_school.rbi +47 -407
- data/spec/test_data/v5.2/expected_spell.rbi +298 -0
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +301 -0
- data/spec/test_data/v5.2/expected_spell_book.rbi +86 -438
- data/spec/test_data/v5.2/expected_spell_book/habtm_spell_books.rbi +649 -0
- data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +301 -0
- data/spec/test_data/v5.2/expected_squib.rbi +133 -488
- data/spec/test_data/v5.2/expected_subject.rbi +298 -0
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +301 -0
- data/spec/test_data/v5.2/expected_wand.rbi +75 -448
- data/spec/test_data/v5.2/expected_wizard.rbi +155 -509
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +301 -0
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +149 -509
- data/spec/test_data/v6.0/expected_active_record_base.rbi +113 -0
- data/spec/test_data/v6.0/expected_active_record_relation.rbi +175 -0
- data/spec/test_data/v6.0/expected_attachment.rbi +38 -431
- data/spec/test_data/v6.0/expected_blob.rbi +60 -450
- data/spec/test_data/v6.0/expected_habtm_subjects.rbi +720 -0
- data/spec/test_data/v6.0/expected_habtm_wizards.rbi +720 -0
- data/spec/test_data/v6.0/expected_headmaster.rbi +334 -0
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +38 -431
- data/spec/test_data/v6.0/expected_potion.rbi +38 -431
- data/spec/test_data/v6.0/expected_robe.rbi +38 -433
- data/spec/test_data/v6.0/expected_routes.rbi +14 -7
- data/spec/test_data/v6.0/expected_schema_migration.rbi +38 -431
- data/spec/test_data/v6.0/expected_school.rbi +47 -431
- data/spec/test_data/v6.0/expected_spell.rbi +322 -0
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +325 -0
- data/spec/test_data/v6.0/expected_spell_book.rbi +98 -474
- data/spec/test_data/v6.0/expected_spell_book/habtm_spell_books.rbi +697 -0
- data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +325 -0
- data/spec/test_data/v6.0/expected_squib.rbi +162 -541
- data/spec/test_data/v6.0/expected_subject.rbi +322 -0
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +325 -0
- data/spec/test_data/v6.0/expected_wand.rbi +91 -488
- data/spec/test_data/v6.0/expected_wizard.rbi +184 -562
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +325 -0
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +178 -562
- metadata +170 -24
- data/lib/bundled_rbi/active_record_base.rbi +0 -83
- data/lib/bundled_rbi/active_record_relation.rbi +0 -122
- data/lib/bundled_rbi/parameters.rbi +0 -28
- data/lib/sorbet-rails/custom_types/boolean_string.rb +0 -32
- data/lib/sorbet-rails/custom_types/integer_string.rb +0 -35
- data/lib/sorbet-rails/model_plugins/active_record_finder_methods.rb +0 -131
- data/lib/sorbet-rails/rails_mixins/custom_params_methods.rb +0 -46
- data/spec/boolean_string_spec.rb +0 -59
- data/spec/custom_params_methods_spec.rb +0 -138
- data/spec/integer_string_spec.rb +0 -46
- data/spec/support/v5.0/typed-override.yaml +0 -2
- data/spec/support/v5.1/typed-override.yaml +0 -2
- data/spec/support/v5.2/typed-override.yaml +0 -2
- data/spec/support/v6.0/typed-override.yaml +0 -2
@@ -0,0 +1,298 @@
|
|
1
|
+
# This is an autogenerated file for dynamic methods in Subject
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[Subject] to regenerate.
|
3
|
+
|
4
|
+
# typed: strong
|
5
|
+
module Subject::ActiveRelation_WhereNot
|
6
|
+
sig { params(opts: T.untyped, rest: T.untyped).returns(T.self_type) }
|
7
|
+
def not(opts, *rest); end
|
8
|
+
end
|
9
|
+
|
10
|
+
module Subject::GeneratedAttributeMethods
|
11
|
+
sig { returns(Integer) }
|
12
|
+
def id; end
|
13
|
+
|
14
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
15
|
+
def id=(value); end
|
16
|
+
|
17
|
+
sig { returns(T::Boolean) }
|
18
|
+
def id?; end
|
19
|
+
|
20
|
+
sig { returns(T.nilable(String)) }
|
21
|
+
def name; end
|
22
|
+
|
23
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
24
|
+
def name=(value); end
|
25
|
+
|
26
|
+
sig { returns(T::Boolean) }
|
27
|
+
def name?; end
|
28
|
+
end
|
29
|
+
|
30
|
+
module Subject::GeneratedAssociationMethods
|
31
|
+
sig { returns(::Wizard::ActiveRecord_Associations_CollectionProxy) }
|
32
|
+
def wizards; end
|
33
|
+
|
34
|
+
sig { returns(T::Array[Integer]) }
|
35
|
+
def wizard_ids; end
|
36
|
+
|
37
|
+
sig { params(value: T::Enumerable[::Wizard]).void }
|
38
|
+
def wizards=(value); end
|
39
|
+
end
|
40
|
+
|
41
|
+
module Subject::CustomFinderMethods
|
42
|
+
sig { params(limit: Integer).returns(T::Array[Subject]) }
|
43
|
+
def first_n(limit); end
|
44
|
+
|
45
|
+
sig { params(limit: Integer).returns(T::Array[Subject]) }
|
46
|
+
def last_n(limit); end
|
47
|
+
|
48
|
+
sig { params(args: T::Array[T.any(Integer, String)]).returns(T::Array[Subject]) }
|
49
|
+
def find_n(*args); end
|
50
|
+
|
51
|
+
sig { params(id: Integer).returns(T.nilable(Subject)) }
|
52
|
+
def find_by_id(id); end
|
53
|
+
|
54
|
+
sig { params(id: Integer).returns(Subject) }
|
55
|
+
def find_by_id!(id); end
|
56
|
+
end
|
57
|
+
|
58
|
+
class Subject < ApplicationRecord
|
59
|
+
include Subject::GeneratedAttributeMethods
|
60
|
+
include Subject::GeneratedAssociationMethods
|
61
|
+
extend Subject::CustomFinderMethods
|
62
|
+
extend Subject::QueryMethodsReturningRelation
|
63
|
+
RelationType = T.type_alias { T.any(Subject::ActiveRecord_Relation, Subject::ActiveRecord_Associations_CollectionProxy, Subject::ActiveRecord_AssociationRelation) }
|
64
|
+
end
|
65
|
+
|
66
|
+
module Subject::QueryMethodsReturningRelation
|
67
|
+
sig { returns(Subject::ActiveRecord_Relation) }
|
68
|
+
def all; end
|
69
|
+
|
70
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Subject::ActiveRecord_Relation) }
|
71
|
+
def unscoped(&block); end
|
72
|
+
|
73
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
74
|
+
def select(*args); end
|
75
|
+
|
76
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
77
|
+
def order(*args); end
|
78
|
+
|
79
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
80
|
+
def reorder(*args); end
|
81
|
+
|
82
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
83
|
+
def group(*args); end
|
84
|
+
|
85
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
86
|
+
def limit(*args); end
|
87
|
+
|
88
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
89
|
+
def offset(*args); end
|
90
|
+
|
91
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
92
|
+
def joins(*args); end
|
93
|
+
|
94
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
95
|
+
def left_joins(*args); end
|
96
|
+
|
97
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
98
|
+
def left_outer_joins(*args); end
|
99
|
+
|
100
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
101
|
+
def where(*args); end
|
102
|
+
|
103
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
104
|
+
def rewhere(*args); end
|
105
|
+
|
106
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
107
|
+
def preload(*args); end
|
108
|
+
|
109
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
110
|
+
def eager_load(*args); end
|
111
|
+
|
112
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
113
|
+
def includes(*args); end
|
114
|
+
|
115
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
116
|
+
def from(*args); end
|
117
|
+
|
118
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
119
|
+
def lock(*args); end
|
120
|
+
|
121
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
122
|
+
def readonly(*args); end
|
123
|
+
|
124
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
125
|
+
def or(*args); end
|
126
|
+
|
127
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
128
|
+
def having(*args); end
|
129
|
+
|
130
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
131
|
+
def create_with(*args); end
|
132
|
+
|
133
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
134
|
+
def distinct(*args); end
|
135
|
+
|
136
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
137
|
+
def references(*args); end
|
138
|
+
|
139
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
140
|
+
def none(*args); end
|
141
|
+
|
142
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
143
|
+
def unscope(*args); end
|
144
|
+
|
145
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
146
|
+
def merge(*args); end
|
147
|
+
|
148
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_Relation) }
|
149
|
+
def except(*args); end
|
150
|
+
|
151
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::ActiveRecord_Relation) }
|
152
|
+
def extending(*args, &block); end
|
153
|
+
|
154
|
+
sig do
|
155
|
+
params(
|
156
|
+
of: T.nilable(Integer),
|
157
|
+
start: T.nilable(Integer),
|
158
|
+
finish: T.nilable(Integer),
|
159
|
+
load: T.nilable(T::Boolean),
|
160
|
+
error_on_ignore: T.nilable(T::Boolean),
|
161
|
+
block: T.nilable(T.proc.params(e: Subject::ActiveRecord_Relation).void)
|
162
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
163
|
+
end
|
164
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
165
|
+
end
|
166
|
+
|
167
|
+
module Subject::QueryMethodsReturningAssociationRelation
|
168
|
+
sig { returns(Subject::ActiveRecord_AssociationRelation) }
|
169
|
+
def all; end
|
170
|
+
|
171
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Subject::ActiveRecord_Relation) }
|
172
|
+
def unscoped(&block); end
|
173
|
+
|
174
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
175
|
+
def select(*args); end
|
176
|
+
|
177
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
178
|
+
def order(*args); end
|
179
|
+
|
180
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
181
|
+
def reorder(*args); end
|
182
|
+
|
183
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
184
|
+
def group(*args); end
|
185
|
+
|
186
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
187
|
+
def limit(*args); end
|
188
|
+
|
189
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
190
|
+
def offset(*args); end
|
191
|
+
|
192
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
193
|
+
def joins(*args); end
|
194
|
+
|
195
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
196
|
+
def left_joins(*args); end
|
197
|
+
|
198
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
199
|
+
def left_outer_joins(*args); end
|
200
|
+
|
201
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
202
|
+
def where(*args); end
|
203
|
+
|
204
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
205
|
+
def rewhere(*args); end
|
206
|
+
|
207
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
208
|
+
def preload(*args); end
|
209
|
+
|
210
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
211
|
+
def eager_load(*args); end
|
212
|
+
|
213
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
214
|
+
def includes(*args); end
|
215
|
+
|
216
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
217
|
+
def from(*args); end
|
218
|
+
|
219
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
220
|
+
def lock(*args); end
|
221
|
+
|
222
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
223
|
+
def readonly(*args); end
|
224
|
+
|
225
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
226
|
+
def or(*args); end
|
227
|
+
|
228
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
229
|
+
def having(*args); end
|
230
|
+
|
231
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
232
|
+
def create_with(*args); end
|
233
|
+
|
234
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
235
|
+
def distinct(*args); end
|
236
|
+
|
237
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
238
|
+
def references(*args); end
|
239
|
+
|
240
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
241
|
+
def none(*args); end
|
242
|
+
|
243
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
244
|
+
def unscope(*args); end
|
245
|
+
|
246
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
247
|
+
def merge(*args); end
|
248
|
+
|
249
|
+
sig { params(args: T.untyped).returns(Subject::ActiveRecord_AssociationRelation) }
|
250
|
+
def except(*args); end
|
251
|
+
|
252
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::ActiveRecord_AssociationRelation) }
|
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: Subject::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
|
266
|
+
end
|
267
|
+
|
268
|
+
class Subject::ActiveRecord_Relation < ActiveRecord::Relation
|
269
|
+
include Subject::ActiveRelation_WhereNot
|
270
|
+
include Subject::CustomFinderMethods
|
271
|
+
include Subject::QueryMethodsReturningRelation
|
272
|
+
Elem = type_member(fixed: Subject)
|
273
|
+
end
|
274
|
+
|
275
|
+
class Subject::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
276
|
+
include Subject::ActiveRelation_WhereNot
|
277
|
+
include Subject::CustomFinderMethods
|
278
|
+
include Subject::QueryMethodsReturningAssociationRelation
|
279
|
+
Elem = type_member(fixed: Subject)
|
280
|
+
end
|
281
|
+
|
282
|
+
class Subject::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
283
|
+
include Subject::CustomFinderMethods
|
284
|
+
include Subject::QueryMethodsReturningAssociationRelation
|
285
|
+
Elem = type_member(fixed: Subject)
|
286
|
+
|
287
|
+
sig { params(records: T.any(Subject, T::Array[Subject])).returns(T.self_type) }
|
288
|
+
def <<(*records); end
|
289
|
+
|
290
|
+
sig { params(records: T.any(Subject, T::Array[Subject])).returns(T.self_type) }
|
291
|
+
def append(*records); end
|
292
|
+
|
293
|
+
sig { params(records: T.any(Subject, T::Array[Subject])).returns(T.self_type) }
|
294
|
+
def push(*records); end
|
295
|
+
|
296
|
+
sig { params(records: T.any(Subject, T::Array[Subject])).returns(T.self_type) }
|
297
|
+
def concat(*records); end
|
298
|
+
end
|
@@ -0,0 +1,301 @@
|
|
1
|
+
# This is an autogenerated file for dynamic methods in Subject::HABTM_Wizards
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[Subject::HABTM_Wizards] to regenerate.
|
3
|
+
|
4
|
+
# typed: strong
|
5
|
+
module Subject::HABTM_Wizards::ActiveRelation_WhereNot
|
6
|
+
sig { params(opts: T.untyped, rest: T.untyped).returns(T.self_type) }
|
7
|
+
def not(opts, *rest); end
|
8
|
+
end
|
9
|
+
|
10
|
+
module Subject::HABTM_Wizards::GeneratedAttributeMethods
|
11
|
+
sig { returns(T.nilable(Integer)) }
|
12
|
+
def subject_id; end
|
13
|
+
|
14
|
+
sig { params(value: T.nilable(T.any(Numeric, ActiveSupport::Duration))).void }
|
15
|
+
def subject_id=(value); end
|
16
|
+
|
17
|
+
sig { returns(T::Boolean) }
|
18
|
+
def subject_id?; end
|
19
|
+
|
20
|
+
sig { returns(T.nilable(Integer)) }
|
21
|
+
def wizard_id; end
|
22
|
+
|
23
|
+
sig { params(value: T.nilable(T.any(Numeric, ActiveSupport::Duration))).void }
|
24
|
+
def wizard_id=(value); end
|
25
|
+
|
26
|
+
sig { returns(T::Boolean) }
|
27
|
+
def wizard_id?; end
|
28
|
+
end
|
29
|
+
|
30
|
+
module Subject::HABTM_Wizards::GeneratedAssociationMethods
|
31
|
+
sig { returns(T.nilable(::Subject)) }
|
32
|
+
def left_side; end
|
33
|
+
|
34
|
+
sig { params(value: T.nilable(::Subject)).void }
|
35
|
+
def left_side=(value); end
|
36
|
+
|
37
|
+
sig { returns(T.nilable(::Wizard)) }
|
38
|
+
def wizard; end
|
39
|
+
|
40
|
+
sig { params(value: T.nilable(::Wizard)).void }
|
41
|
+
def wizard=(value); end
|
42
|
+
end
|
43
|
+
|
44
|
+
module Subject::HABTM_Wizards::CustomFinderMethods
|
45
|
+
sig { params(limit: Integer).returns(T::Array[Subject::HABTM_Wizards]) }
|
46
|
+
def first_n(limit); end
|
47
|
+
|
48
|
+
sig { params(limit: Integer).returns(T::Array[Subject::HABTM_Wizards]) }
|
49
|
+
def last_n(limit); end
|
50
|
+
|
51
|
+
sig { params(args: T::Array[T.any(Integer, String)]).returns(T::Array[Subject::HABTM_Wizards]) }
|
52
|
+
def find_n(*args); end
|
53
|
+
|
54
|
+
sig { params(id: Integer).returns(T.nilable(Subject::HABTM_Wizards)) }
|
55
|
+
def find_by_id(id); end
|
56
|
+
|
57
|
+
sig { params(id: Integer).returns(Subject::HABTM_Wizards) }
|
58
|
+
def find_by_id!(id); end
|
59
|
+
end
|
60
|
+
|
61
|
+
class Subject::HABTM_Wizards < ActiveRecord::Base
|
62
|
+
include Subject::HABTM_Wizards::GeneratedAttributeMethods
|
63
|
+
include Subject::HABTM_Wizards::GeneratedAssociationMethods
|
64
|
+
extend Subject::HABTM_Wizards::CustomFinderMethods
|
65
|
+
extend Subject::HABTM_Wizards::QueryMethodsReturningRelation
|
66
|
+
RelationType = T.type_alias { T.any(Subject::HABTM_Wizards::ActiveRecord_Relation, Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy, Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
67
|
+
end
|
68
|
+
|
69
|
+
module Subject::HABTM_Wizards::QueryMethodsReturningRelation
|
70
|
+
sig { returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
71
|
+
def all; end
|
72
|
+
|
73
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
74
|
+
def unscoped(&block); end
|
75
|
+
|
76
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
77
|
+
def select(*args); end
|
78
|
+
|
79
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
80
|
+
def order(*args); end
|
81
|
+
|
82
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
83
|
+
def reorder(*args); end
|
84
|
+
|
85
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
86
|
+
def group(*args); end
|
87
|
+
|
88
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
89
|
+
def limit(*args); end
|
90
|
+
|
91
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
92
|
+
def offset(*args); end
|
93
|
+
|
94
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
95
|
+
def joins(*args); end
|
96
|
+
|
97
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
98
|
+
def left_joins(*args); end
|
99
|
+
|
100
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
101
|
+
def left_outer_joins(*args); end
|
102
|
+
|
103
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
104
|
+
def where(*args); end
|
105
|
+
|
106
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
107
|
+
def rewhere(*args); end
|
108
|
+
|
109
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
110
|
+
def preload(*args); end
|
111
|
+
|
112
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
113
|
+
def eager_load(*args); end
|
114
|
+
|
115
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
116
|
+
def includes(*args); end
|
117
|
+
|
118
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
119
|
+
def from(*args); end
|
120
|
+
|
121
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
122
|
+
def lock(*args); end
|
123
|
+
|
124
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
125
|
+
def readonly(*args); end
|
126
|
+
|
127
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
128
|
+
def or(*args); end
|
129
|
+
|
130
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
131
|
+
def having(*args); end
|
132
|
+
|
133
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
134
|
+
def create_with(*args); end
|
135
|
+
|
136
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
137
|
+
def distinct(*args); end
|
138
|
+
|
139
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
140
|
+
def references(*args); end
|
141
|
+
|
142
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
143
|
+
def none(*args); end
|
144
|
+
|
145
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
146
|
+
def unscope(*args); end
|
147
|
+
|
148
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
149
|
+
def merge(*args); end
|
150
|
+
|
151
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
152
|
+
def except(*args); end
|
153
|
+
|
154
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
155
|
+
def extending(*args, &block); end
|
156
|
+
|
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: Subject::HABTM_Wizards::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
|
169
|
+
|
170
|
+
module Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
|
171
|
+
sig { returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
172
|
+
def all; end
|
173
|
+
|
174
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
175
|
+
def unscoped(&block); end
|
176
|
+
|
177
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
178
|
+
def select(*args); end
|
179
|
+
|
180
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
181
|
+
def order(*args); end
|
182
|
+
|
183
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
184
|
+
def reorder(*args); end
|
185
|
+
|
186
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
187
|
+
def group(*args); end
|
188
|
+
|
189
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
190
|
+
def limit(*args); end
|
191
|
+
|
192
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
193
|
+
def offset(*args); end
|
194
|
+
|
195
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
196
|
+
def joins(*args); end
|
197
|
+
|
198
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
199
|
+
def left_joins(*args); end
|
200
|
+
|
201
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
202
|
+
def left_outer_joins(*args); end
|
203
|
+
|
204
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
205
|
+
def where(*args); end
|
206
|
+
|
207
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
208
|
+
def rewhere(*args); end
|
209
|
+
|
210
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
211
|
+
def preload(*args); end
|
212
|
+
|
213
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
214
|
+
def eager_load(*args); end
|
215
|
+
|
216
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
217
|
+
def includes(*args); end
|
218
|
+
|
219
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
220
|
+
def from(*args); end
|
221
|
+
|
222
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
223
|
+
def lock(*args); end
|
224
|
+
|
225
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
226
|
+
def readonly(*args); end
|
227
|
+
|
228
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
229
|
+
def or(*args); end
|
230
|
+
|
231
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
232
|
+
def having(*args); end
|
233
|
+
|
234
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
235
|
+
def create_with(*args); end
|
236
|
+
|
237
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
238
|
+
def distinct(*args); end
|
239
|
+
|
240
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
241
|
+
def references(*args); end
|
242
|
+
|
243
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
244
|
+
def none(*args); end
|
245
|
+
|
246
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
247
|
+
def unscope(*args); end
|
248
|
+
|
249
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
250
|
+
def merge(*args); end
|
251
|
+
|
252
|
+
sig { params(args: T.untyped).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
253
|
+
def except(*args); end
|
254
|
+
|
255
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
256
|
+
def extending(*args, &block); end
|
257
|
+
|
258
|
+
sig do
|
259
|
+
params(
|
260
|
+
of: T.nilable(Integer),
|
261
|
+
start: T.nilable(Integer),
|
262
|
+
finish: T.nilable(Integer),
|
263
|
+
load: T.nilable(T::Boolean),
|
264
|
+
error_on_ignore: T.nilable(T::Boolean),
|
265
|
+
block: T.nilable(T.proc.params(e: Subject::HABTM_Wizards::ActiveRecord_AssociationRelation).void)
|
266
|
+
).returns(ActiveRecord::Batches::BatchEnumerator)
|
267
|
+
end
|
268
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
269
|
+
end
|
270
|
+
|
271
|
+
class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation
|
272
|
+
include Subject::HABTM_Wizards::ActiveRelation_WhereNot
|
273
|
+
include Subject::HABTM_Wizards::CustomFinderMethods
|
274
|
+
include Subject::HABTM_Wizards::QueryMethodsReturningRelation
|
275
|
+
Elem = type_member(fixed: Subject::HABTM_Wizards)
|
276
|
+
end
|
277
|
+
|
278
|
+
class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
279
|
+
include Subject::HABTM_Wizards::ActiveRelation_WhereNot
|
280
|
+
include Subject::HABTM_Wizards::CustomFinderMethods
|
281
|
+
include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
|
282
|
+
Elem = type_member(fixed: Subject::HABTM_Wizards)
|
283
|
+
end
|
284
|
+
|
285
|
+
class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
286
|
+
include Subject::HABTM_Wizards::CustomFinderMethods
|
287
|
+
include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
|
288
|
+
Elem = type_member(fixed: Subject::HABTM_Wizards)
|
289
|
+
|
290
|
+
sig { params(records: T.any(Subject::HABTM_Wizards, T::Array[Subject::HABTM_Wizards])).returns(T.self_type) }
|
291
|
+
def <<(*records); end
|
292
|
+
|
293
|
+
sig { params(records: T.any(Subject::HABTM_Wizards, T::Array[Subject::HABTM_Wizards])).returns(T.self_type) }
|
294
|
+
def append(*records); end
|
295
|
+
|
296
|
+
sig { params(records: T.any(Subject::HABTM_Wizards, T::Array[Subject::HABTM_Wizards])).returns(T.self_type) }
|
297
|
+
def push(*records); end
|
298
|
+
|
299
|
+
sig { params(records: T.any(Subject::HABTM_Wizards, T::Array[Subject::HABTM_Wizards])).returns(T.self_type) }
|
300
|
+
def concat(*records); end
|
301
|
+
end
|