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 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) }
|
@@ -122,7 +122,7 @@ module Wand::GeneratedAttributeMethods
|
|
122
122
|
sig { returns(Integer) }
|
123
123
|
def reflectance; end
|
124
124
|
|
125
|
-
sig { params(value: T.any(
|
125
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
126
126
|
def reflectance=(value); end
|
127
127
|
|
128
128
|
sig { returns(T::Boolean) }
|
@@ -131,7 +131,7 @@ module Wand::GeneratedAttributeMethods
|
|
131
131
|
sig { returns(ActiveSupport::TimeWithZone) }
|
132
132
|
def updated_at; end
|
133
133
|
|
134
|
-
sig { params(value: T.any(
|
134
|
+
sig { params(value: T.any(Date, Time, ActiveSupport::TimeWithZone)).void }
|
135
135
|
def updated_at=(value); end
|
136
136
|
|
137
137
|
sig { returns(T::Boolean) }
|
@@ -140,7 +140,7 @@ module Wand::GeneratedAttributeMethods
|
|
140
140
|
sig { returns(Integer) }
|
141
141
|
def wizard_id; end
|
142
142
|
|
143
|
-
sig { params(value: T.any(
|
143
|
+
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
144
144
|
def wizard_id=(value); end
|
145
145
|
|
146
146
|
sig { returns(T::Boolean) }
|
@@ -149,7 +149,7 @@ module Wand::GeneratedAttributeMethods
|
|
149
149
|
sig { returns(T.nilable(String)) }
|
150
150
|
def wood_type; end
|
151
151
|
|
152
|
-
sig { params(value: T.nilable(String)).void }
|
152
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
153
153
|
def wood_type=(value); end
|
154
154
|
|
155
155
|
sig { returns(T::Boolean) }
|
@@ -200,6 +200,7 @@ class Wand < ApplicationRecord
|
|
200
200
|
extend Wand::CustomFinderMethods
|
201
201
|
extend T::Sig
|
202
202
|
extend T::Generic
|
203
|
+
RelationType = T.type_alias { T.any(Wand::ActiveRecord_Relation, Wand::ActiveRecord_Associations_CollectionProxy, Wand::ActiveRecord_AssociationRelation) }
|
203
204
|
|
204
205
|
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
205
206
|
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) }
|
@@ -337,6 +337,7 @@ class Wizard < ApplicationRecord
|
|
337
337
|
extend Wizard::CustomFinderMethods
|
338
338
|
extend T::Sig
|
339
339
|
extend T::Generic
|
340
|
+
RelationType = T.type_alias { T.any(Wizard::ActiveRecord_Relation, Wizard::ActiveRecord_Associations_CollectionProxy, Wizard::ActiveRecord_AssociationRelation) }
|
340
341
|
|
341
342
|
sig { returns(T::Hash[T.any(String, Symbol), String]) }
|
342
343
|
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) }
|
@@ -337,6 +337,7 @@ class Wizard < ApplicationRecord
|
|
337
337
|
extend Wizard::CustomFinderMethods
|
338
338
|
extend T::Sig
|
339
339
|
extend T::Generic
|
340
|
+
RelationType = T.type_alias { T.any(Wizard::ActiveRecord_Relation, Wizard::ActiveRecord_Associations_CollectionProxy, Wizard::ActiveRecord_AssociationRelation) }
|
340
341
|
|
341
342
|
sig { returns(T::Hash[T.any(String, Symbol), String]) }
|
342
343
|
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
|
@@ -51,6 +51,7 @@ class ActiveStorage::Blob < ActiveRecord::Base
|
|
51
51
|
extend ActiveStorage::Blob::CustomFinderMethods
|
52
52
|
extend T::Sig
|
53
53
|
extend T::Generic
|
54
|
+
RelationType = T.type_alias { T.any(ActiveStorage::Blob::ActiveRecord_Relation, ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy, ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
54
55
|
|
55
56
|
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
56
57
|
def self.unattached(*args); end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# typed: strong
|
2
2
|
# This is an autogenerated file for Rails helpers.
|
3
|
-
# Please rerun rake rails_rbi:mailers to regenerate.
|
3
|
+
# Please rerun bundle exec rake rails_rbi:mailers to regenerate.
|
4
4
|
class DailyProphetMailer
|
5
5
|
sig { params(wizards: T::Array[Wizard], hotnews_only: T::Boolean).returns(ActionMailer::MessageDelivery) }
|
6
6
|
def self.notify_subscribers(wizards:, hotnews_only:); end
|
@@ -1,10 +1,20 @@
|
|
1
1
|
# typed: strong
|
2
2
|
# This is an autogenerated file for Rails helpers.
|
3
|
-
# Please rerun rake rails_rbi:mailers to regenerate.
|
3
|
+
# Please rerun bundle exec rake rails_rbi:mailers to regenerate.
|
4
4
|
class HogwartsAcceptanceMailer
|
5
5
|
sig { params(student: Wizard).returns(ActionMailer::MessageDelivery) }
|
6
6
|
def self.notify(student); end
|
7
7
|
|
8
8
|
sig { params(student: T.untyped).returns(ActionMailer::MessageDelivery) }
|
9
9
|
def self.notify_retry(student); end
|
10
|
+
|
11
|
+
sig do
|
12
|
+
params(
|
13
|
+
teacher: Wizard,
|
14
|
+
note: String,
|
15
|
+
student: Wizard,
|
16
|
+
special: T::Boolean
|
17
|
+
).returns(ActionMailer::MessageDelivery)
|
18
|
+
end
|
19
|
+
def self.notify_teacher(teacher, note = nil, student:, special: false); end
|
10
20
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This is an autogenerated file for dynamic methods in ActiveRecord::InternalMetadata
|
2
|
-
# Please rerun rake rails_rbi:models[ActiveRecord::InternalMetadata] to regenerate.
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[ActiveRecord::InternalMetadata] to regenerate.
|
3
3
|
|
4
4
|
# typed: strong
|
5
5
|
module ActiveRecord::InternalMetadata::ActiveRelation_WhereNot
|
@@ -13,7 +13,7 @@ module ActiveRecord::InternalMetadata::GeneratedAttributeMethods
|
|
13
13
|
sig { returns(ActiveSupport::TimeWithZone) }
|
14
14
|
def created_at; end
|
15
15
|
|
16
|
-
sig { params(value: T.any(
|
16
|
+
sig { params(value: T.any(Date, Time, ActiveSupport::TimeWithZone)).void }
|
17
17
|
def created_at=(value); end
|
18
18
|
|
19
19
|
sig { returns(T::Boolean) }
|
@@ -31,7 +31,7 @@ module ActiveRecord::InternalMetadata::GeneratedAttributeMethods
|
|
31
31
|
sig { returns(ActiveSupport::TimeWithZone) }
|
32
32
|
def updated_at; end
|
33
33
|
|
34
|
-
sig { params(value: T.any(
|
34
|
+
sig { params(value: T.any(Date, Time, ActiveSupport::TimeWithZone)).void }
|
35
35
|
def updated_at=(value); end
|
36
36
|
|
37
37
|
sig { returns(T::Boolean) }
|
@@ -40,7 +40,7 @@ module ActiveRecord::InternalMetadata::GeneratedAttributeMethods
|
|
40
40
|
sig { returns(T.nilable(String)) }
|
41
41
|
def value; end
|
42
42
|
|
43
|
-
sig { params(value: T.nilable(String)).void }
|
43
|
+
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
44
44
|
def value=(value); end
|
45
45
|
|
46
46
|
sig { returns(T::Boolean) }
|
@@ -69,6 +69,7 @@ class ActiveRecord::InternalMetadata < ActiveRecord::Base
|
|
69
69
|
extend ActiveRecord::InternalMetadata::CustomFinderMethods
|
70
70
|
extend T::Sig
|
71
71
|
extend T::Generic
|
72
|
+
RelationType = T.type_alias { T.any(ActiveRecord::InternalMetadata::ActiveRecord_Relation, ActiveRecord::InternalMetadata::ActiveRecord_Associations_CollectionProxy, ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
|
72
73
|
|
73
74
|
sig { returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
|
74
75
|
def self.all; end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This is an autogenerated file for dynamic methods in Potion
|
2
|
-
# Please rerun rake rails_rbi:models[Potion] to regenerate.
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[Potion] to regenerate.
|
3
3
|
|
4
4
|
# typed: strong
|
5
5
|
module Potion::ActiveRelation_WhereNot
|
@@ -39,6 +39,7 @@ class Potion < ApplicationRecord
|
|
39
39
|
extend Potion::CustomFinderMethods
|
40
40
|
extend T::Sig
|
41
41
|
extend T::Generic
|
42
|
+
RelationType = T.type_alias { T.any(Potion::ActiveRecord_Relation, Potion::ActiveRecord_Associations_CollectionProxy, Potion::ActiveRecord_AssociationRelation) }
|
42
43
|
|
43
44
|
sig { returns(Potion::ActiveRecord_Relation) }
|
44
45
|
def self.all; end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This is an autogenerated file for dynamic methods in Robe
|
2
|
-
# Please rerun rake rails_rbi:models[Robe] to regenerate.
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[Robe] to regenerate.
|
3
3
|
|
4
4
|
# typed: strong
|
5
5
|
module Robe::ActiveRelation_WhereNot
|
@@ -13,7 +13,7 @@ module Robe::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 Robe::GeneratedAttributeMethods
|
|
22
22
|
sig { returns(T.nilable(Integer)) }
|
23
23
|
def wizard_id; end
|
24
24
|
|
25
|
-
sig { params(value: T.nilable(T.any(
|
25
|
+
sig { params(value: T.nilable(T.any(Numeric, ActiveSupport::Duration))).void }
|
26
26
|
def wizard_id=(value); end
|
27
27
|
|
28
28
|
sig { returns(T::Boolean) }
|
@@ -62,6 +62,7 @@ class Robe < ApplicationRecord
|
|
62
62
|
extend Robe::CustomFinderMethods
|
63
63
|
extend T::Sig
|
64
64
|
extend T::Generic
|
65
|
+
RelationType = T.type_alias { T.any(Robe::ActiveRecord_Relation, Robe::ActiveRecord_Associations_CollectionProxy, Robe::ActiveRecord_AssociationRelation) }
|
65
66
|
|
66
67
|
sig { returns(Robe::ActiveRecord_Relation) }
|
67
68
|
def self.all; end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This is an autogenerated file for dynamic methods in ActiveRecord::SchemaMigration
|
2
|
-
# Please rerun rake rails_rbi:models[ActiveRecord::SchemaMigration] to regenerate.
|
2
|
+
# Please rerun bundle exec rake rails_rbi:models[ActiveRecord::SchemaMigration] to regenerate.
|
3
3
|
|
4
4
|
# typed: strong
|
5
5
|
module ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
|
@@ -42,6 +42,7 @@ class ActiveRecord::SchemaMigration < ActiveRecord::Base
|
|
42
42
|
extend ActiveRecord::SchemaMigration::CustomFinderMethods
|
43
43
|
extend T::Sig
|
44
44
|
extend T::Generic
|
45
|
+
RelationType = T.type_alias { T.any(ActiveRecord::SchemaMigration::ActiveRecord_Relation, ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy, ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
|
45
46
|
|
46
47
|
sig { returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
|
47
48
|
def self.all; end
|