sorbet-rails 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +69 -24
- data/bin/sorbet +6 -0
- data/lib/sorbet-rails/helper_rbi_formatter.rb +1 -1
- data/lib/sorbet-rails/mailer_rbi_formatter.rb +1 -1
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +35 -24
- data/lib/sorbet-rails/model_rbi_formatter.rb +5 -1
- data/lib/sorbet-rails/model_utils.rb +17 -1
- data/lib/sorbet-rails/railtie.rb +10 -0
- data/lib/sorbet-rails/routes_rbi_formatter.rb +1 -1
- data/lib/sorbet-rails/sorbet_utils.rb +120 -25
- data/sorbet-rails.gemspec +5 -3
- data/spec/generators/rails-template.rb +16 -0
- data/spec/model_rbi_formatter_spec.rb +7 -0
- data/spec/sorbet_utils_spec.rb +25 -13
- data/spec/support/v5.0/Gemfile.lock +13 -11
- data/spec/support/v5.0/app/mailers/hogwarts_acceptance_mailer.rb +17 -1
- data/spec/support/v5.1/Gemfile.lock +13 -11
- data/spec/support/v5.1/app/mailers/hogwarts_acceptance_mailer.rb +17 -1
- data/spec/support/v5.2/Gemfile.lock +13 -11
- data/spec/support/v5.2/app/mailers/hogwarts_acceptance_mailer.rb +17 -1
- data/spec/support/v6.0/Gemfile.lock +14 -12
- data/spec/support/v6.0/app/mailers/application_mailer.rb +1 -1
- data/spec/support/v6.0/app/mailers/hogwarts_acceptance_mailer.rb +17 -1
- data/spec/test_data/v5.0/expected_application_mailer.rbi +1 -1
- data/spec/test_data/v5.0/expected_daily_prophet_mailer.rbi +1 -1
- data/spec/test_data/v5.0/expected_helpers.rbi +1 -1
- data/spec/test_data/v5.0/expected_helpers_with_application_and_devise_helpers.rbi +1 -1
- data/spec/test_data/v5.0/expected_hogwarts_acceptance_mailer.rbi +11 -1
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +5 -4
- data/spec/test_data/v5.0/expected_potion.rbi +2 -1
- data/spec/test_data/v5.0/expected_robe.rbi +4 -3
- data/spec/test_data/v5.0/expected_routes.rbi +1 -1
- data/spec/test_data/v5.0/expected_schema_migration.rbi +2 -1
- data/spec/test_data/v5.0/expected_school.rbi +4 -3
- data/spec/test_data/v5.0/expected_spell_book.rbi +5 -4
- data/spec/test_data/v5.0/expected_squib.rbi +10 -9
- data/spec/test_data/v5.0/expected_wand.rbi +11 -10
- data/spec/test_data/v5.0/expected_wizard.rbi +10 -9
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +10 -9
- data/spec/test_data/v5.1/expected_application_mailer.rbi +1 -1
- data/spec/test_data/v5.1/expected_daily_prophet_mailer.rbi +1 -1
- data/spec/test_data/v5.1/expected_helpers.rbi +1 -1
- data/spec/test_data/v5.1/expected_helpers_with_application_and_devise_helpers.rbi +1 -1
- data/spec/test_data/v5.1/expected_hogwarts_acceptance_mailer.rbi +11 -1
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +5 -4
- data/spec/test_data/v5.1/expected_potion.rbi +2 -1
- data/spec/test_data/v5.1/expected_robe.rbi +4 -3
- data/spec/test_data/v5.1/expected_routes.rbi +1 -1
- data/spec/test_data/v5.1/expected_schema_migration.rbi +2 -1
- data/spec/test_data/v5.1/expected_school.rbi +4 -3
- data/spec/test_data/v5.1/expected_spell_book.rbi +5 -4
- data/spec/test_data/v5.1/expected_squib.rbi +10 -9
- data/spec/test_data/v5.1/expected_wand.rbi +11 -10
- data/spec/test_data/v5.1/expected_wizard.rbi +10 -9
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +10 -9
- data/spec/test_data/v5.2/expected_application_mailer.rbi +1 -1
- data/spec/test_data/v5.2/expected_attachment.rbi +2 -1
- data/spec/test_data/v5.2/expected_blob.rbi +2 -1
- data/spec/test_data/v5.2/expected_daily_prophet_mailer.rbi +1 -1
- data/spec/test_data/v5.2/expected_helpers.rbi +1 -1
- data/spec/test_data/v5.2/expected_helpers_with_application_and_devise_helpers.rbi +1 -1
- data/spec/test_data/v5.2/expected_hogwarts_acceptance_mailer.rbi +11 -1
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +5 -4
- data/spec/test_data/v5.2/expected_potion.rbi +2 -1
- data/spec/test_data/v5.2/expected_robe.rbi +4 -3
- data/spec/test_data/v5.2/expected_routes.rbi +1 -1
- data/spec/test_data/v5.2/expected_schema_migration.rbi +2 -1
- data/spec/test_data/v5.2/expected_school.rbi +4 -3
- data/spec/test_data/v5.2/expected_spell_book.rbi +5 -4
- data/spec/test_data/v5.2/expected_squib.rbi +10 -9
- data/spec/test_data/v5.2/expected_wand.rbi +11 -10
- data/spec/test_data/v5.2/expected_wizard.rbi +10 -9
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +10 -9
- data/spec/test_data/v6.0/expected_application_mailer.rbi +1 -1
- data/spec/test_data/v6.0/expected_attachment.rbi +2 -1
- data/spec/test_data/v6.0/expected_blob.rbi +2 -1
- data/spec/test_data/v6.0/expected_daily_prophet_mailer.rbi +1 -1
- data/spec/test_data/v6.0/expected_helpers.rbi +1 -1
- data/spec/test_data/v6.0/expected_helpers_with_application_and_devise_helpers.rbi +1 -1
- data/spec/test_data/v6.0/expected_hogwarts_acceptance_mailer.rbi +11 -1
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +5 -4
- data/spec/test_data/v6.0/expected_potion.rbi +2 -1
- data/spec/test_data/v6.0/expected_robe.rbi +4 -3
- data/spec/test_data/v6.0/expected_routes.rbi +1 -1
- data/spec/test_data/v6.0/expected_schema_migration.rbi +2 -1
- data/spec/test_data/v6.0/expected_school.rbi +4 -3
- data/spec/test_data/v6.0/expected_spell_book.rbi +5 -4
- data/spec/test_data/v6.0/expected_squib.rbi +10 -9
- data/spec/test_data/v6.0/expected_wand.rbi +11 -10
- data/spec/test_data/v6.0/expected_wizard.rbi +10 -9
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +10 -9
- metadata +33 -4
@@ -1,5 +1,5 @@
|
|
1
1
|
# This is an autogenerated file for dynamic methods in School
|
2
|
-
# Please rerun rake rails_rbi:models[School] to regenerate.
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[School] to regenerate.
|
3
3
|
|
4
4
|
# typed: strong
|
5
5
|
module School::ActiveRelation_WhereNot
|
@@ -13,7 +13,7 @@ module School::GeneratedAttributeMethods
|
|
13
13
|
sig { returns(Integer) }
|
14
14
|
def id; end
|
15
15
|
|
16
|
-
sig { params(value: T.any(
|
16
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
17
17
|
def id=(value); end
|
18
18
|
|
19
19
|
sig { returns(T::Boolean) }
|
@@ -22,7 +22,7 @@ module School::GeneratedAttributeMethods
|
|
22
22
|
sig { returns(T.nilable(String)) }
|
23
23
|
def name; end
|
24
24
|
|
25
|
-
sig { params(value: T.nilable(String)).void }
|
25
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
26
26
|
def name=(value); end
|
27
27
|
|
28
28
|
sig { returns(T::Boolean) }
|
@@ -51,6 +51,7 @@ class School < ApplicationRecord
|
|
51
51
|
extend School::CustomFinderMethods
|
52
52
|
extend T::Sig
|
53
53
|
extend T::Generic
|
54
|
+
RelationType = T.type_alias { T.any(School::ActiveRecord_Relation, School::ActiveRecord_Associations_CollectionProxy, School::ActiveRecord_AssociationRelation) }
|
54
55
|
|
55
56
|
sig { returns(School::ActiveRecord_Relation) }
|
56
57
|
def self.all; end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This is an autogenerated file for dynamic methods in SpellBook
|
2
|
-
# Please rerun rake rails_rbi:models[SpellBook] to regenerate.
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[SpellBook] to regenerate.
|
3
3
|
|
4
4
|
# typed: strong
|
5
5
|
module SpellBook::EnumInstanceMethods
|
@@ -44,7 +44,7 @@ module SpellBook::GeneratedAttributeMethods
|
|
44
44
|
sig { returns(Integer) }
|
45
45
|
def id; end
|
46
46
|
|
47
|
-
sig { params(value: T.any(
|
47
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
48
48
|
def id=(value); end
|
49
49
|
|
50
50
|
sig { returns(T::Boolean) }
|
@@ -53,7 +53,7 @@ module SpellBook::GeneratedAttributeMethods
|
|
53
53
|
sig { returns(T.nilable(String)) }
|
54
54
|
def name; end
|
55
55
|
|
56
|
-
sig { params(value: T.nilable(String)).void }
|
56
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
57
57
|
def name=(value); end
|
58
58
|
|
59
59
|
sig { returns(T::Boolean) }
|
@@ -62,7 +62,7 @@ module SpellBook::GeneratedAttributeMethods
|
|
62
62
|
sig { returns(Integer) }
|
63
63
|
def wizard_id; end
|
64
64
|
|
65
|
-
sig { params(value: T.any(
|
65
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
66
66
|
def wizard_id=(value); end
|
67
67
|
|
68
68
|
sig { returns(T::Boolean) }
|
@@ -112,6 +112,7 @@ class SpellBook < ApplicationRecord
|
|
112
112
|
extend SpellBook::CustomFinderMethods
|
113
113
|
extend T::Sig
|
114
114
|
extend T::Generic
|
115
|
+
RelationType = T.type_alias { T.any(SpellBook::ActiveRecord_Relation, SpellBook::ActiveRecord_Associations_CollectionProxy, SpellBook::ActiveRecord_AssociationRelation) }
|
115
116
|
|
116
117
|
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
117
118
|
def self.book_types; end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This is an autogenerated file for dynamic methods in Squib
|
2
|
-
# Please rerun rake rails_rbi:models[Squib] to regenerate.
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[Squib] to regenerate.
|
3
3
|
|
4
4
|
# typed: strong
|
5
5
|
module Squib::EnumInstanceMethods
|
@@ -128,7 +128,7 @@ module Squib::GeneratedAttributeMethods
|
|
128
128
|
sig { returns(ActiveSupport::TimeWithZone) }
|
129
129
|
def created_at; end
|
130
130
|
|
131
|
-
sig { params(value: T.any(
|
131
|
+
sig { params(value: T.any(Date, Time, ActiveSupport::TimeWithZone)).void }
|
132
132
|
def created_at=(value); end
|
133
133
|
|
134
134
|
sig { returns(T::Boolean) }
|
@@ -155,7 +155,7 @@ module Squib::GeneratedAttributeMethods
|
|
155
155
|
sig { returns(T.nilable(Integer)) }
|
156
156
|
def hair_length; end
|
157
157
|
|
158
|
-
sig { params(value: T.nilable(T.any(
|
158
|
+
sig { params(value: T.nilable(T.any(Numeric, ActiveSupport::Duration))).void }
|
159
159
|
def hair_length=(value); end
|
160
160
|
|
161
161
|
sig { returns(T::Boolean) }
|
@@ -173,7 +173,7 @@ module Squib::GeneratedAttributeMethods
|
|
173
173
|
sig { returns(Integer) }
|
174
174
|
def id; end
|
175
175
|
|
176
|
-
sig { params(value: T.any(
|
176
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
177
177
|
def id=(value); end
|
178
178
|
|
179
179
|
sig { returns(T::Boolean) }
|
@@ -182,7 +182,7 @@ module Squib::GeneratedAttributeMethods
|
|
182
182
|
sig { returns(T.nilable(String)) }
|
183
183
|
def name; end
|
184
184
|
|
185
|
-
sig { params(value: T.nilable(String)).void }
|
185
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
186
186
|
def name=(value); end
|
187
187
|
|
188
188
|
sig { returns(T::Boolean) }
|
@@ -191,7 +191,7 @@ module Squib::GeneratedAttributeMethods
|
|
191
191
|
sig { returns(T.nilable(String)) }
|
192
192
|
def notes; end
|
193
193
|
|
194
|
-
sig { params(value: T.nilable(String)).void }
|
194
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
195
195
|
def notes=(value); end
|
196
196
|
|
197
197
|
sig { returns(T::Boolean) }
|
@@ -200,7 +200,7 @@ module Squib::GeneratedAttributeMethods
|
|
200
200
|
sig { returns(T.nilable(String)) }
|
201
201
|
def parent_email; end
|
202
202
|
|
203
|
-
sig { params(value: T.nilable(String)).void }
|
203
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
204
204
|
def parent_email=(value); end
|
205
205
|
|
206
206
|
sig { returns(T::Boolean) }
|
@@ -227,7 +227,7 @@ module Squib::GeneratedAttributeMethods
|
|
227
227
|
sig { returns(T.nilable(Integer)) }
|
228
228
|
def school_id; end
|
229
229
|
|
230
|
-
sig { params(value: T.nilable(T.any(
|
230
|
+
sig { params(value: T.nilable(T.any(Numeric, ActiveSupport::Duration))).void }
|
231
231
|
def school_id=(value); end
|
232
232
|
|
233
233
|
sig { returns(T::Boolean) }
|
@@ -245,7 +245,7 @@ module Squib::GeneratedAttributeMethods
|
|
245
245
|
sig { returns(ActiveSupport::TimeWithZone) }
|
246
246
|
def updated_at; end
|
247
247
|
|
248
|
-
sig { params(value: T.any(
|
248
|
+
sig { params(value: T.any(Date, Time, ActiveSupport::TimeWithZone)).void }
|
249
249
|
def updated_at=(value); end
|
250
250
|
|
251
251
|
sig { returns(T::Boolean) }
|
@@ -322,6 +322,7 @@ class Squib < Wizard
|
|
322
322
|
extend Squib::CustomFinderMethods
|
323
323
|
extend T::Sig
|
324
324
|
extend T::Generic
|
325
|
+
RelationType = T.type_alias { T.any(Squib::ActiveRecord_Relation, Squib::ActiveRecord_Associations_CollectionProxy, Squib::ActiveRecord_AssociationRelation) }
|
325
326
|
|
326
327
|
sig { returns(T::Hash[T.any(String, Symbol), String]) }
|
327
328
|
def self.brooms; end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This is an autogenerated file for dynamic methods in Wand
|
2
|
-
# Please rerun rake rails_rbi:models[Wand] to regenerate.
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[Wand] to regenerate.
|
3
3
|
|
4
4
|
# typed: strong
|
5
5
|
module Wand::EnumInstanceMethods
|
@@ -68,7 +68,7 @@ module Wand::GeneratedAttributeMethods
|
|
68
68
|
sig { returns(T.nilable(ActiveSupport::TimeWithZone)) }
|
69
69
|
def chosen_at_time; end
|
70
70
|
|
71
|
-
sig { params(value: T.nilable(T.any(
|
71
|
+
sig { params(value: T.nilable(T.any(Date, Time, ActiveSupport::TimeWithZone))).void }
|
72
72
|
def chosen_at_time=(value); end
|
73
73
|
|
74
74
|
sig { returns(T::Boolean) }
|
@@ -86,7 +86,7 @@ module Wand::GeneratedAttributeMethods
|
|
86
86
|
sig { returns(ActiveSupport::TimeWithZone) }
|
87
87
|
def created_at; end
|
88
88
|
|
89
|
-
sig { params(value: T.any(
|
89
|
+
sig { params(value: T.any(Date, Time, ActiveSupport::TimeWithZone)).void }
|
90
90
|
def created_at=(value); end
|
91
91
|
|
92
92
|
sig { returns(T::Boolean) }
|
@@ -95,7 +95,7 @@ module Wand::GeneratedAttributeMethods
|
|
95
95
|
sig { returns(Float) }
|
96
96
|
def flexibility; end
|
97
97
|
|
98
|
-
sig { params(value: T.any(
|
98
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
99
99
|
def flexibility=(value); end
|
100
100
|
|
101
101
|
sig { returns(T::Boolean) }
|
@@ -104,7 +104,7 @@ module Wand::GeneratedAttributeMethods
|
|
104
104
|
sig { returns(BigDecimal) }
|
105
105
|
def hardness; end
|
106
106
|
|
107
|
-
sig { params(value:
|
107
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
108
108
|
def hardness=(value); end
|
109
109
|
|
110
110
|
sig { returns(T::Boolean) }
|
@@ -113,7 +113,7 @@ module Wand::GeneratedAttributeMethods
|
|
113
113
|
sig { returns(Integer) }
|
114
114
|
def id; end
|
115
115
|
|
116
|
-
sig { params(value: T.any(
|
116
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
117
117
|
def id=(value); end
|
118
118
|
|
119
119
|
sig { returns(T::Boolean) }
|
@@ -131,7 +131,7 @@ module Wand::GeneratedAttributeMethods
|
|
131
131
|
sig { returns(Integer) }
|
132
132
|
def reflectance; end
|
133
133
|
|
134
|
-
sig { params(value: T.any(
|
134
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
135
135
|
def reflectance=(value); end
|
136
136
|
|
137
137
|
sig { returns(T::Boolean) }
|
@@ -149,7 +149,7 @@ module Wand::GeneratedAttributeMethods
|
|
149
149
|
sig { returns(ActiveSupport::TimeWithZone) }
|
150
150
|
def updated_at; end
|
151
151
|
|
152
|
-
sig { params(value: T.any(
|
152
|
+
sig { params(value: T.any(Date, Time, ActiveSupport::TimeWithZone)).void }
|
153
153
|
def updated_at=(value); end
|
154
154
|
|
155
155
|
sig { returns(T::Boolean) }
|
@@ -158,7 +158,7 @@ module Wand::GeneratedAttributeMethods
|
|
158
158
|
sig { returns(Integer) }
|
159
159
|
def wizard_id; end
|
160
160
|
|
161
|
-
sig { params(value: T.any(
|
161
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
162
162
|
def wizard_id=(value); end
|
163
163
|
|
164
164
|
sig { returns(T::Boolean) }
|
@@ -167,7 +167,7 @@ module Wand::GeneratedAttributeMethods
|
|
167
167
|
sig { returns(T.nilable(String)) }
|
168
168
|
def wood_type; end
|
169
169
|
|
170
|
-
sig { params(value: T.nilable(String)).void }
|
170
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
171
171
|
def wood_type=(value); end
|
172
172
|
|
173
173
|
sig { returns(T::Boolean) }
|
@@ -218,6 +218,7 @@ class Wand < ApplicationRecord
|
|
218
218
|
extend Wand::CustomFinderMethods
|
219
219
|
extend T::Sig
|
220
220
|
extend T::Generic
|
221
|
+
RelationType = T.type_alias { T.any(Wand::ActiveRecord_Relation, Wand::ActiveRecord_Associations_CollectionProxy, Wand::ActiveRecord_AssociationRelation) }
|
221
222
|
|
222
223
|
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
223
224
|
def self.core_types; end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This is an autogenerated file for dynamic methods in Wizard
|
2
|
-
# Please rerun rake rails_rbi:models[Wizard] to regenerate.
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[Wizard] to regenerate.
|
3
3
|
|
4
4
|
# typed: strong
|
5
5
|
module Wizard::EnumInstanceMethods
|
@@ -122,7 +122,7 @@ module Wizard::GeneratedAttributeMethods
|
|
122
122
|
sig { returns(ActiveSupport::TimeWithZone) }
|
123
123
|
def created_at; end
|
124
124
|
|
125
|
-
sig { params(value: T.any(
|
125
|
+
sig { params(value: T.any(Date, Time, ActiveSupport::TimeWithZone)).void }
|
126
126
|
def created_at=(value); end
|
127
127
|
|
128
128
|
sig { returns(T::Boolean) }
|
@@ -149,7 +149,7 @@ module Wizard::GeneratedAttributeMethods
|
|
149
149
|
sig { returns(T.nilable(Integer)) }
|
150
150
|
def hair_length; end
|
151
151
|
|
152
|
-
sig { params(value: T.nilable(T.any(
|
152
|
+
sig { params(value: T.nilable(T.any(Numeric, ActiveSupport::Duration))).void }
|
153
153
|
def hair_length=(value); end
|
154
154
|
|
155
155
|
sig { returns(T::Boolean) }
|
@@ -161,7 +161,7 @@ module Wizard::GeneratedAttributeMethods
|
|
161
161
|
sig { returns(Integer) }
|
162
162
|
def id; end
|
163
163
|
|
164
|
-
sig { params(value: T.any(
|
164
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
165
165
|
def id=(value); end
|
166
166
|
|
167
167
|
sig { returns(T::Boolean) }
|
@@ -170,7 +170,7 @@ module Wizard::GeneratedAttributeMethods
|
|
170
170
|
sig { returns(T.nilable(String)) }
|
171
171
|
def name; end
|
172
172
|
|
173
|
-
sig { params(value: T.nilable(String)).void }
|
173
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
174
174
|
def name=(value); end
|
175
175
|
|
176
176
|
sig { returns(T::Boolean) }
|
@@ -179,7 +179,7 @@ module Wizard::GeneratedAttributeMethods
|
|
179
179
|
sig { returns(T.nilable(String)) }
|
180
180
|
def notes; end
|
181
181
|
|
182
|
-
sig { params(value: T.nilable(String)).void }
|
182
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
183
183
|
def notes=(value); end
|
184
184
|
|
185
185
|
sig { returns(T::Boolean) }
|
@@ -188,7 +188,7 @@ module Wizard::GeneratedAttributeMethods
|
|
188
188
|
sig { returns(T.nilable(String)) }
|
189
189
|
def parent_email; end
|
190
190
|
|
191
|
-
sig { params(value: T.nilable(String)).void }
|
191
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
192
192
|
def parent_email=(value); end
|
193
193
|
|
194
194
|
sig { returns(T::Boolean) }
|
@@ -209,7 +209,7 @@ module Wizard::GeneratedAttributeMethods
|
|
209
209
|
sig { returns(T.nilable(Integer)) }
|
210
210
|
def school_id; end
|
211
211
|
|
212
|
-
sig { params(value: T.nilable(T.any(
|
212
|
+
sig { params(value: T.nilable(T.any(Numeric, ActiveSupport::Duration))).void }
|
213
213
|
def school_id=(value); end
|
214
214
|
|
215
215
|
sig { returns(T::Boolean) }
|
@@ -227,7 +227,7 @@ module Wizard::GeneratedAttributeMethods
|
|
227
227
|
sig { returns(ActiveSupport::TimeWithZone) }
|
228
228
|
def updated_at; end
|
229
229
|
|
230
|
-
sig { params(value: T.any(
|
230
|
+
sig { params(value: T.any(Date, Time, ActiveSupport::TimeWithZone)).void }
|
231
231
|
def updated_at=(value); end
|
232
232
|
|
233
233
|
sig { returns(T::Boolean) }
|
@@ -361,6 +361,7 @@ class Wizard < ApplicationRecord
|
|
361
361
|
extend Wizard::CustomFinderMethods
|
362
362
|
extend T::Sig
|
363
363
|
extend T::Generic
|
364
|
+
RelationType = T.type_alias { T.any(Wizard::ActiveRecord_Relation, Wizard::ActiveRecord_Associations_CollectionProxy, Wizard::ActiveRecord_AssociationRelation) }
|
364
365
|
|
365
366
|
sig { returns(T::Hash[T.any(String, Symbol), String]) }
|
366
367
|
def self.brooms; end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This is an autogenerated file for dynamic methods in Wizard
|
2
|
-
# Please rerun rake rails_rbi:models[Wizard] to regenerate.
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[Wizard] to regenerate.
|
3
3
|
|
4
4
|
# typed: strong
|
5
5
|
module Wizard::EnumInstanceMethods
|
@@ -122,7 +122,7 @@ module Wizard::GeneratedAttributeMethods
|
|
122
122
|
sig { returns(ActiveSupport::TimeWithZone) }
|
123
123
|
def created_at; end
|
124
124
|
|
125
|
-
sig { params(value: T.any(
|
125
|
+
sig { params(value: T.any(Date, Time, ActiveSupport::TimeWithZone)).void }
|
126
126
|
def created_at=(value); end
|
127
127
|
|
128
128
|
sig { returns(T::Boolean) }
|
@@ -149,7 +149,7 @@ module Wizard::GeneratedAttributeMethods
|
|
149
149
|
sig { returns(T.nilable(Integer)) }
|
150
150
|
def hair_length; end
|
151
151
|
|
152
|
-
sig { params(value: T.nilable(T.any(
|
152
|
+
sig { params(value: T.nilable(T.any(Numeric, ActiveSupport::Duration))).void }
|
153
153
|
def hair_length=(value); end
|
154
154
|
|
155
155
|
sig { returns(T::Boolean) }
|
@@ -161,7 +161,7 @@ module Wizard::GeneratedAttributeMethods
|
|
161
161
|
sig { returns(Integer) }
|
162
162
|
def id; end
|
163
163
|
|
164
|
-
sig { params(value: T.any(
|
164
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
165
165
|
def id=(value); end
|
166
166
|
|
167
167
|
sig { returns(T::Boolean) }
|
@@ -170,7 +170,7 @@ module Wizard::GeneratedAttributeMethods
|
|
170
170
|
sig { returns(T.nilable(String)) }
|
171
171
|
def name; end
|
172
172
|
|
173
|
-
sig { params(value: T.nilable(String)).void }
|
173
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
174
174
|
def name=(value); end
|
175
175
|
|
176
176
|
sig { returns(T::Boolean) }
|
@@ -179,7 +179,7 @@ module Wizard::GeneratedAttributeMethods
|
|
179
179
|
sig { returns(T.nilable(String)) }
|
180
180
|
def notes; end
|
181
181
|
|
182
|
-
sig { params(value: T.nilable(String)).void }
|
182
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
183
183
|
def notes=(value); end
|
184
184
|
|
185
185
|
sig { returns(T::Boolean) }
|
@@ -188,7 +188,7 @@ module Wizard::GeneratedAttributeMethods
|
|
188
188
|
sig { returns(T.nilable(String)) }
|
189
189
|
def parent_email; end
|
190
190
|
|
191
|
-
sig { params(value: T.nilable(String)).void }
|
191
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
192
192
|
def parent_email=(value); end
|
193
193
|
|
194
194
|
sig { returns(T::Boolean) }
|
@@ -209,7 +209,7 @@ module Wizard::GeneratedAttributeMethods
|
|
209
209
|
sig { returns(T.nilable(Integer)) }
|
210
210
|
def school_id; end
|
211
211
|
|
212
|
-
sig { params(value: T.nilable(T.any(
|
212
|
+
sig { params(value: T.nilable(T.any(Numeric, ActiveSupport::Duration))).void }
|
213
213
|
def school_id=(value); end
|
214
214
|
|
215
215
|
sig { returns(T::Boolean) }
|
@@ -227,7 +227,7 @@ module Wizard::GeneratedAttributeMethods
|
|
227
227
|
sig { returns(ActiveSupport::TimeWithZone) }
|
228
228
|
def updated_at; end
|
229
229
|
|
230
|
-
sig { params(value: T.any(
|
230
|
+
sig { params(value: T.any(Date, Time, ActiveSupport::TimeWithZone)).void }
|
231
231
|
def updated_at=(value); end
|
232
232
|
|
233
233
|
sig { returns(T::Boolean) }
|
@@ -361,6 +361,7 @@ class Wizard < ApplicationRecord
|
|
361
361
|
extend Wizard::CustomFinderMethods
|
362
362
|
extend T::Sig
|
363
363
|
extend T::Generic
|
364
|
+
RelationType = T.type_alias { T.any(Wizard::ActiveRecord_Relation, Wizard::ActiveRecord_Associations_CollectionProxy, Wizard::ActiveRecord_AssociationRelation) }
|
364
365
|
|
365
366
|
sig { returns(T::Hash[T.any(String, Symbol), String]) }
|
366
367
|
def self.brooms; end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This is an autogenerated file for dynamic methods in ActiveStorage::Attachment
|
2
|
-
# Please rerun rake rails_rbi:models[ActiveStorage::Attachment] to regenerate.
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[ActiveStorage::Attachment] to regenerate.
|
3
3
|
|
4
4
|
# typed: strong
|
5
5
|
module ActiveStorage::Attachment::ActiveRelation_WhereNot
|
@@ -45,6 +45,7 @@ class ActiveStorage::Attachment < ActiveRecord::Base
|
|
45
45
|
extend ActiveStorage::Attachment::CustomFinderMethods
|
46
46
|
extend T::Sig
|
47
47
|
extend T::Generic
|
48
|
+
RelationType = T.type_alias { T.any(ActiveStorage::Attachment::ActiveRecord_Relation, ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy, ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
48
49
|
|
49
50
|
sig { returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
50
51
|
def self.all; end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This is an autogenerated file for dynamic methods in ActiveStorage::Blob
|
2
|
-
# Please rerun rake rails_rbi:models[ActiveStorage::Blob] to regenerate.
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[ActiveStorage::Blob] to regenerate.
|
3
3
|
|
4
4
|
# typed: strong
|
5
5
|
module ActiveStorage::Blob::ActiveRelation_WhereNot
|
@@ -29,6 +29,7 @@ class ActiveStorage::Blob < ActiveRecord::Base
|
|
29
29
|
extend ActiveStorage::Blob::CustomFinderMethods
|
30
30
|
extend T::Sig
|
31
31
|
extend T::Generic
|
32
|
+
RelationType = T.type_alias { T.any(ActiveStorage::Blob::ActiveRecord_Relation, ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy, ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
32
33
|
|
33
34
|
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
34
35
|
def self.unattached(*args); end
|