sorbet-rails 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sorbet-rails/active_record_rbi_formatter.rb +295 -0
- data/lib/sorbet-rails/config.rb +0 -1
- data/lib/sorbet-rails/custom_types/boolean_string.rb +10 -0
- data/lib/sorbet-rails/custom_types/integer_string.rb +10 -0
- data/lib/sorbet-rails/dependent_gem_rbis/activerecord.rbi +11 -0
- data/lib/sorbet-rails/deprecation.rb +5 -0
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +27 -6
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +20 -8
- data/lib/sorbet-rails/model_plugins/base.rb +9 -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 +2 -2
- data/lib/sorbet-rails/model_utils.rb +15 -6
- data/lib/sorbet-rails/rails_mixins/custom_params_methods.rb +11 -0
- data/lib/sorbet-rails/tasks/rails_rbi.rake +20 -4
- data/sorbet-rails.gemspec +2 -2
- data/spec/active_record_rbi_formatter_spec.rb +24 -0
- data/spec/generators/rails-template.rb +88 -1
- data/spec/generators/sorbet_test_cases.rb +146 -42
- 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 +3 -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 +146 -42
- 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 +3 -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 +146 -42
- 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 +3 -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 +146 -42
- 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 +3 -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 +146 -42
- 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 +452 -0
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +0 -217
- data/spec/test_data/v5.0/expected_potion.rbi +0 -217
- data/spec/test_data/v5.0/expected_robe.rbi +0 -217
- data/spec/test_data/v5.0/expected_schema_migration.rbi +0 -217
- data/spec/test_data/v5.0/expected_school.rbi +11 -217
- data/spec/test_data/v5.0/expected_spell.rbi +440 -0
- data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +443 -0
- data/spec/test_data/v5.0/expected_spell_book.rbi +14 -222
- 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 +443 -0
- data/spec/test_data/v5.0/expected_squib.rbi +14 -219
- data/spec/test_data/v5.0/expected_subject.rbi +440 -0
- data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +443 -0
- data/spec/test_data/v5.0/expected_wand.rbi +4 -221
- data/spec/test_data/v5.0/expected_wizard.rbi +36 -240
- data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +443 -0
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +30 -240
- 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 +464 -0
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +0 -217
- data/spec/test_data/v5.1/expected_potion.rbi +0 -217
- data/spec/test_data/v5.1/expected_robe.rbi +0 -217
- data/spec/test_data/v5.1/expected_schema_migration.rbi +0 -217
- data/spec/test_data/v5.1/expected_school.rbi +11 -217
- data/spec/test_data/v5.1/expected_spell.rbi +452 -0
- data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +455 -0
- data/spec/test_data/v5.1/expected_spell_book.rbi +14 -222
- 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 +455 -0
- data/spec/test_data/v5.1/expected_squib.rbi +14 -219
- data/spec/test_data/v5.1/expected_subject.rbi +452 -0
- data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +455 -0
- data/spec/test_data/v5.1/expected_wand.rbi +4 -221
- data/spec/test_data/v5.1/expected_wizard.rbi +36 -240
- data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +455 -0
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +30 -240
- 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 +0 -217
- data/spec/test_data/v5.2/expected_blob.rbi +3 -217
- 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 +464 -0
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +0 -217
- data/spec/test_data/v5.2/expected_potion.rbi +0 -217
- data/spec/test_data/v5.2/expected_robe.rbi +0 -217
- data/spec/test_data/v5.2/expected_schema_migration.rbi +0 -217
- data/spec/test_data/v5.2/expected_school.rbi +11 -217
- data/spec/test_data/v5.2/expected_spell.rbi +452 -0
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +455 -0
- data/spec/test_data/v5.2/expected_spell_book.rbi +14 -222
- 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 +455 -0
- data/spec/test_data/v5.2/expected_squib.rbi +20 -219
- data/spec/test_data/v5.2/expected_subject.rbi +452 -0
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +455 -0
- data/spec/test_data/v5.2/expected_wand.rbi +4 -221
- data/spec/test_data/v5.2/expected_wizard.rbi +42 -240
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +455 -0
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +36 -240
- 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 +0 -217
- data/spec/test_data/v6.0/expected_blob.rbi +3 -217
- 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 +512 -0
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +0 -217
- data/spec/test_data/v6.0/expected_potion.rbi +0 -217
- data/spec/test_data/v6.0/expected_robe.rbi +0 -217
- data/spec/test_data/v6.0/expected_schema_migration.rbi +0 -217
- data/spec/test_data/v6.0/expected_school.rbi +11 -217
- data/spec/test_data/v6.0/expected_spell.rbi +500 -0
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +503 -0
- data/spec/test_data/v6.0/expected_spell_book.rbi +14 -222
- 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 +503 -0
- data/spec/test_data/v6.0/expected_squib.rbi +20 -219
- data/spec/test_data/v6.0/expected_subject.rbi +500 -0
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +503 -0
- data/spec/test_data/v6.0/expected_wand.rbi +4 -221
- data/spec/test_data/v6.0/expected_wizard.rbi +42 -240
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +503 -0
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +36 -240
- metadata +169 -14
- data/lib/bundled_rbi/active_record_base.rbi +0 -83
- data/lib/bundled_rbi/active_record_relation.rbi +0 -122
- data/lib/sorbet-rails/model_plugins/active_record_finder_methods.rb +0 -131
- 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,455 @@
|
|
1
|
+
# This is an autogenerated file for dynamic methods in SpellBook::HABTM_Spells
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[SpellBook::HABTM_Spells] to regenerate.
|
3
|
+
|
4
|
+
# typed: strong
|
5
|
+
module SpellBook::HABTM_Spells::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 SpellBook::HABTM_Spells::GeneratedAttributeMethods
|
11
|
+
extend T::Sig
|
12
|
+
|
13
|
+
sig { returns(Integer) }
|
14
|
+
def spell_book_id; end
|
15
|
+
|
16
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
17
|
+
def spell_book_id=(value); end
|
18
|
+
|
19
|
+
sig { returns(T::Boolean) }
|
20
|
+
def spell_book_id?; end
|
21
|
+
|
22
|
+
sig { returns(Integer) }
|
23
|
+
def spell_id; end
|
24
|
+
|
25
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
26
|
+
def spell_id=(value); end
|
27
|
+
|
28
|
+
sig { returns(T::Boolean) }
|
29
|
+
def spell_id?; end
|
30
|
+
end
|
31
|
+
|
32
|
+
module SpellBook::HABTM_Spells::GeneratedAssociationMethods
|
33
|
+
extend T::Sig
|
34
|
+
|
35
|
+
sig { returns(T.nilable(::SpellBook)) }
|
36
|
+
def left_side; end
|
37
|
+
|
38
|
+
sig { params(value: T.nilable(::SpellBook)).void }
|
39
|
+
def left_side=(value); end
|
40
|
+
|
41
|
+
sig { returns(::Spell) }
|
42
|
+
def spell; end
|
43
|
+
|
44
|
+
sig { params(value: ::Spell).void }
|
45
|
+
def spell=(value); end
|
46
|
+
end
|
47
|
+
|
48
|
+
module SpellBook::HABTM_Spells::CustomFinderMethods
|
49
|
+
sig { params(limit: Integer).returns(T::Array[SpellBook::HABTM_Spells]) }
|
50
|
+
def first_n(limit); end
|
51
|
+
|
52
|
+
sig { params(limit: Integer).returns(T::Array[SpellBook::HABTM_Spells]) }
|
53
|
+
def last_n(limit); end
|
54
|
+
|
55
|
+
sig { params(args: T::Array[T.any(Integer, String)]).returns(T::Array[SpellBook::HABTM_Spells]) }
|
56
|
+
def find_n(*args); end
|
57
|
+
|
58
|
+
sig { params(id: Integer).returns(T.nilable(SpellBook::HABTM_Spells)) }
|
59
|
+
def find_by_id(id); end
|
60
|
+
|
61
|
+
sig { params(id: Integer).returns(SpellBook::HABTM_Spells) }
|
62
|
+
def find_by_id!(id); end
|
63
|
+
end
|
64
|
+
|
65
|
+
class SpellBook::HABTM_Spells < ActiveRecord::Base
|
66
|
+
include SpellBook::HABTM_Spells::GeneratedAttributeMethods
|
67
|
+
include SpellBook::HABTM_Spells::GeneratedAssociationMethods
|
68
|
+
extend SpellBook::HABTM_Spells::CustomFinderMethods
|
69
|
+
extend T::Sig
|
70
|
+
extend T::Generic
|
71
|
+
RelationType = T.type_alias { T.any(SpellBook::HABTM_Spells::ActiveRecord_Relation, SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy, SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
72
|
+
|
73
|
+
sig { returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
74
|
+
def self.all; end
|
75
|
+
|
76
|
+
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
77
|
+
def self.unscoped(&block); end
|
78
|
+
|
79
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
80
|
+
def self.select(*args); end
|
81
|
+
|
82
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
83
|
+
def self.order(*args); end
|
84
|
+
|
85
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
86
|
+
def self.reorder(*args); end
|
87
|
+
|
88
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
89
|
+
def self.group(*args); end
|
90
|
+
|
91
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
92
|
+
def self.limit(*args); end
|
93
|
+
|
94
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
95
|
+
def self.offset(*args); end
|
96
|
+
|
97
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
98
|
+
def self.joins(*args); end
|
99
|
+
|
100
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
101
|
+
def self.left_joins(*args); end
|
102
|
+
|
103
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
104
|
+
def self.left_outer_joins(*args); end
|
105
|
+
|
106
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
107
|
+
def self.where(*args); end
|
108
|
+
|
109
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
110
|
+
def self.rewhere(*args); end
|
111
|
+
|
112
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
113
|
+
def self.preload(*args); end
|
114
|
+
|
115
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
116
|
+
def self.eager_load(*args); end
|
117
|
+
|
118
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
119
|
+
def self.includes(*args); end
|
120
|
+
|
121
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
122
|
+
def self.from(*args); end
|
123
|
+
|
124
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
125
|
+
def self.lock(*args); end
|
126
|
+
|
127
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
128
|
+
def self.readonly(*args); end
|
129
|
+
|
130
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
131
|
+
def self.or(*args); end
|
132
|
+
|
133
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
134
|
+
def self.having(*args); end
|
135
|
+
|
136
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
137
|
+
def self.create_with(*args); end
|
138
|
+
|
139
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
140
|
+
def self.distinct(*args); end
|
141
|
+
|
142
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
143
|
+
def self.references(*args); end
|
144
|
+
|
145
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
146
|
+
def self.none(*args); end
|
147
|
+
|
148
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
149
|
+
def self.unscope(*args); end
|
150
|
+
|
151
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
152
|
+
def self.merge(*args); end
|
153
|
+
|
154
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
155
|
+
def self.except(*args); end
|
156
|
+
|
157
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
158
|
+
def self.extending(*args, &block); end
|
159
|
+
end
|
160
|
+
|
161
|
+
class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
|
162
|
+
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
163
|
+
include SpellBook::HABTM_Spells::CustomFinderMethods
|
164
|
+
extend T::Sig
|
165
|
+
extend T::Generic
|
166
|
+
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
167
|
+
|
168
|
+
sig { returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
169
|
+
def all; end
|
170
|
+
|
171
|
+
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
172
|
+
def unscoped(&block); end
|
173
|
+
|
174
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
175
|
+
def select(*args); end
|
176
|
+
|
177
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
178
|
+
def order(*args); end
|
179
|
+
|
180
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
181
|
+
def reorder(*args); end
|
182
|
+
|
183
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
184
|
+
def group(*args); end
|
185
|
+
|
186
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
187
|
+
def limit(*args); end
|
188
|
+
|
189
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
190
|
+
def offset(*args); end
|
191
|
+
|
192
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
193
|
+
def joins(*args); end
|
194
|
+
|
195
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
196
|
+
def left_joins(*args); end
|
197
|
+
|
198
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
199
|
+
def left_outer_joins(*args); end
|
200
|
+
|
201
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
202
|
+
def where(*args); end
|
203
|
+
|
204
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
205
|
+
def rewhere(*args); end
|
206
|
+
|
207
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
208
|
+
def preload(*args); end
|
209
|
+
|
210
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
211
|
+
def eager_load(*args); end
|
212
|
+
|
213
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
214
|
+
def includes(*args); end
|
215
|
+
|
216
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
217
|
+
def from(*args); end
|
218
|
+
|
219
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
220
|
+
def lock(*args); end
|
221
|
+
|
222
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
223
|
+
def readonly(*args); end
|
224
|
+
|
225
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
226
|
+
def or(*args); end
|
227
|
+
|
228
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
229
|
+
def having(*args); end
|
230
|
+
|
231
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
232
|
+
def create_with(*args); end
|
233
|
+
|
234
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
235
|
+
def distinct(*args); end
|
236
|
+
|
237
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
238
|
+
def references(*args); end
|
239
|
+
|
240
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
241
|
+
def none(*args); end
|
242
|
+
|
243
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
244
|
+
def unscope(*args); end
|
245
|
+
|
246
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
247
|
+
def merge(*args); end
|
248
|
+
|
249
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
250
|
+
def except(*args); end
|
251
|
+
|
252
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
253
|
+
def extending(*args, &block); end
|
254
|
+
end
|
255
|
+
|
256
|
+
class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
257
|
+
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
258
|
+
include SpellBook::HABTM_Spells::CustomFinderMethods
|
259
|
+
extend T::Sig
|
260
|
+
extend T::Generic
|
261
|
+
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
262
|
+
|
263
|
+
sig { returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
264
|
+
def all; end
|
265
|
+
|
266
|
+
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
267
|
+
def unscoped(&block); end
|
268
|
+
|
269
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
270
|
+
def select(*args); end
|
271
|
+
|
272
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
273
|
+
def order(*args); end
|
274
|
+
|
275
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
276
|
+
def reorder(*args); end
|
277
|
+
|
278
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
279
|
+
def group(*args); end
|
280
|
+
|
281
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
282
|
+
def limit(*args); end
|
283
|
+
|
284
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
285
|
+
def offset(*args); end
|
286
|
+
|
287
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
288
|
+
def joins(*args); end
|
289
|
+
|
290
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
291
|
+
def left_joins(*args); end
|
292
|
+
|
293
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
294
|
+
def left_outer_joins(*args); end
|
295
|
+
|
296
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
297
|
+
def where(*args); end
|
298
|
+
|
299
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
300
|
+
def rewhere(*args); end
|
301
|
+
|
302
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
303
|
+
def preload(*args); end
|
304
|
+
|
305
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
306
|
+
def eager_load(*args); end
|
307
|
+
|
308
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
309
|
+
def includes(*args); end
|
310
|
+
|
311
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
312
|
+
def from(*args); end
|
313
|
+
|
314
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
315
|
+
def lock(*args); end
|
316
|
+
|
317
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
318
|
+
def readonly(*args); end
|
319
|
+
|
320
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
321
|
+
def or(*args); end
|
322
|
+
|
323
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
324
|
+
def having(*args); end
|
325
|
+
|
326
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
327
|
+
def create_with(*args); end
|
328
|
+
|
329
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
330
|
+
def distinct(*args); end
|
331
|
+
|
332
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
333
|
+
def references(*args); end
|
334
|
+
|
335
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
336
|
+
def none(*args); end
|
337
|
+
|
338
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
339
|
+
def unscope(*args); end
|
340
|
+
|
341
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
342
|
+
def merge(*args); end
|
343
|
+
|
344
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
345
|
+
def except(*args); end
|
346
|
+
|
347
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
348
|
+
def extending(*args, &block); end
|
349
|
+
end
|
350
|
+
|
351
|
+
class SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
352
|
+
include SpellBook::HABTM_Spells::CustomFinderMethods
|
353
|
+
extend T::Sig
|
354
|
+
extend T::Generic
|
355
|
+
Elem = type_member(fixed: SpellBook::HABTM_Spells)
|
356
|
+
|
357
|
+
sig { returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
358
|
+
def all; end
|
359
|
+
|
360
|
+
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
361
|
+
def unscoped(&block); end
|
362
|
+
|
363
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
364
|
+
def select(*args); end
|
365
|
+
|
366
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
367
|
+
def order(*args); end
|
368
|
+
|
369
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
370
|
+
def reorder(*args); end
|
371
|
+
|
372
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
373
|
+
def group(*args); end
|
374
|
+
|
375
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
376
|
+
def limit(*args); end
|
377
|
+
|
378
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
379
|
+
def offset(*args); end
|
380
|
+
|
381
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
382
|
+
def joins(*args); end
|
383
|
+
|
384
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
385
|
+
def left_joins(*args); end
|
386
|
+
|
387
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
388
|
+
def left_outer_joins(*args); end
|
389
|
+
|
390
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
391
|
+
def where(*args); end
|
392
|
+
|
393
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
394
|
+
def rewhere(*args); end
|
395
|
+
|
396
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
397
|
+
def preload(*args); end
|
398
|
+
|
399
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
400
|
+
def eager_load(*args); end
|
401
|
+
|
402
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
403
|
+
def includes(*args); end
|
404
|
+
|
405
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
406
|
+
def from(*args); end
|
407
|
+
|
408
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
409
|
+
def lock(*args); end
|
410
|
+
|
411
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
412
|
+
def readonly(*args); end
|
413
|
+
|
414
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
415
|
+
def or(*args); end
|
416
|
+
|
417
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
418
|
+
def having(*args); end
|
419
|
+
|
420
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
421
|
+
def create_with(*args); end
|
422
|
+
|
423
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
424
|
+
def distinct(*args); end
|
425
|
+
|
426
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
427
|
+
def references(*args); end
|
428
|
+
|
429
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
430
|
+
def none(*args); end
|
431
|
+
|
432
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
433
|
+
def unscope(*args); end
|
434
|
+
|
435
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
436
|
+
def merge(*args); end
|
437
|
+
|
438
|
+
sig { params(args: T.untyped).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
439
|
+
def except(*args); end
|
440
|
+
|
441
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
442
|
+
def extending(*args, &block); end
|
443
|
+
|
444
|
+
sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
|
445
|
+
def <<(*records); end
|
446
|
+
|
447
|
+
sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
|
448
|
+
def append(*records); end
|
449
|
+
|
450
|
+
sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
|
451
|
+
def push(*records); end
|
452
|
+
|
453
|
+
sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
|
454
|
+
def concat(*records); end
|
455
|
+
end
|