sorbet-rails 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +0 -2
- data/CONTRIBUTING.md +2 -4
- data/Gemfile +0 -4
- data/README.md +41 -7
- data/Rakefile +3 -14
- data/lib/bundled_rbi/parameters.rbi +4 -26
- data/lib/bundled_rbi/pluck_to_tstruct.rbi +22 -0
- data/lib/bundled_rbi/type_assert.rbi +27 -0
- data/lib/sorbet-rails/gem_plugins/elastic_search_plugin.rb +40 -0
- data/lib/sorbet-rails/gem_plugins/shrine_plugin.rb +76 -0
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +2 -11
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +3 -6
- data/lib/sorbet-rails/model_plugins/active_record_querying.rb +10 -2
- data/lib/sorbet-rails/model_plugins/plugins.rb +6 -0
- data/lib/sorbet-rails/rails_mixins/pluck_to_tstruct.rb +33 -0
- data/lib/sorbet-rails/railtie.rb +4 -0
- data/lib/sorbet-rails/sorbet_utils.rb +4 -1
- data/lib/sorbet-rails/tasks/rails_rbi.rake +16 -6
- data/sorbet-rails.gemspec +1 -1
- data/spec/bin/run_all_specs.sh +0 -1
- data/spec/bin/run_spec.sh +4 -6
- data/spec/generators/rails-template.rb +67 -124
- data/spec/generators/sorbet_test_cases.rb +26 -16
- data/spec/pluck_to_tstruct_spec.rb +79 -0
- data/spec/rails_helper.rb +0 -2
- data/spec/rake_rails_rbi_models_spec.rb +2 -0
- data/spec/sorbet_utils_spec.rb +37 -0
- data/spec/spec_helper.rb +1 -2
- data/spec/support/v5.0/Gemfile.lock +6 -6
- data/spec/support/v5.0/config/boot.rb +1 -1
- data/spec/support/v5.0/config/initializers/sorbet_rails.rb +1 -1
- data/spec/support/v5.0/db/migrate/20190620000004_add_more_column_types_to_wands.rb +1 -1
- data/spec/support/v5.0/sorbet_test_cases.rb +26 -16
- data/spec/support/v5.1/Gemfile.lock +6 -6
- data/spec/support/v5.1/config/boot.rb +1 -1
- data/spec/support/v5.1/config/initializers/sorbet_rails.rb +1 -1
- data/spec/support/v5.1/db/migrate/20190620000004_add_more_column_types_to_wands.rb +1 -1
- data/spec/support/v5.1/sorbet_test_cases.rb +26 -16
- data/spec/support/v5.2/Gemfile.lock +6 -6
- data/spec/support/v5.2/config/boot.rb +1 -1
- data/spec/support/v5.2/config/initializers/sorbet_rails.rb +1 -1
- data/spec/support/v5.2/db/migrate/20190620000004_add_more_column_types_to_wands.rb +1 -1
- data/spec/support/v5.2/sorbet_test_cases.rb +26 -16
- data/spec/support/v6.0/Gemfile.lock +6 -6
- data/spec/support/v6.0/config/boot.rb +1 -1
- data/spec/support/v6.0/config/initializers/sorbet_rails.rb +1 -1
- data/spec/support/v6.0/config/initializers/wrap_parameters.rb +1 -1
- data/spec/support/v6.0/db/migrate/20190620000004_add_more_column_types_to_wands.rb +1 -1
- data/spec/support/v6.0/sorbet_test_cases.rb +26 -16
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +209 -197
- data/spec/test_data/v5.0/expected_potion.rbi +208 -196
- data/spec/test_data/v5.0/expected_schema_migration.rbi +209 -197
- data/spec/test_data/v5.0/expected_spell_book.rbi +208 -196
- data/spec/test_data/v5.0/expected_squib.rbi +209 -197
- data/spec/test_data/v5.0/expected_wand.rbi +208 -196
- data/spec/test_data/v5.0/expected_wizard.rbi +209 -197
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +209 -197
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +213 -213
- data/spec/test_data/v5.1/expected_potion.rbi +212 -212
- data/spec/test_data/v5.1/expected_schema_migration.rbi +213 -213
- data/spec/test_data/v5.1/expected_spell_book.rbi +212 -212
- data/spec/test_data/v5.1/expected_squib.rbi +213 -213
- data/spec/test_data/v5.1/expected_wand.rbi +212 -212
- data/spec/test_data/v5.1/expected_wizard.rbi +213 -213
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +213 -213
- data/spec/test_data/v5.2/expected_attachment.rbi +212 -212
- data/spec/test_data/v5.2/expected_blob.rbi +212 -212
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +213 -213
- data/spec/test_data/v5.2/expected_potion.rbi +212 -212
- data/spec/test_data/v5.2/expected_schema_migration.rbi +213 -213
- data/spec/test_data/v5.2/expected_spell_book.rbi +212 -212
- data/spec/test_data/v5.2/expected_squib.rbi +213 -213
- data/spec/test_data/v5.2/expected_wand.rbi +212 -212
- data/spec/test_data/v5.2/expected_wizard.rbi +213 -213
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +213 -213
- data/spec/test_data/v6.0/expected_attachment.rbi +244 -244
- data/spec/test_data/v6.0/expected_blob.rbi +244 -244
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +245 -245
- data/spec/test_data/v6.0/expected_potion.rbi +244 -244
- data/spec/test_data/v6.0/expected_schema_migration.rbi +245 -245
- data/spec/test_data/v6.0/expected_spell_book.rbi +244 -244
- data/spec/test_data/v6.0/expected_squib.rbi +245 -245
- data/spec/test_data/v6.0/expected_wand.rbi +244 -244
- data/spec/test_data/v6.0/expected_wizard.rbi +245 -245
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +245 -245
- metadata +8 -185
- data/spec/bin/install.sh +0 -11
- data/spec/support/v4.2/.gitignore +0 -17
- data/spec/support/v4.2/Gemfile +0 -33
- data/spec/support/v4.2/Gemfile.lock +0 -128
- data/spec/support/v4.2/README.rdoc +0 -28
- data/spec/support/v4.2/Rakefile +0 -6
- data/spec/support/v4.2/app/assets/images/.keep +0 -0
- data/spec/support/v4.2/app/assets/stylesheets/application.css +0 -15
- data/spec/support/v4.2/app/controllers/application_controller.rb +0 -6
- data/spec/support/v4.2/app/controllers/concerns/.keep +0 -0
- data/spec/support/v4.2/app/helpers/application_helper.rb +0 -3
- data/spec/support/v4.2/app/helpers/bar_helper.rb +0 -3
- data/spec/support/v4.2/app/helpers/baz_helper.rb +0 -3
- data/spec/support/v4.2/app/helpers/foo_helper.rb +0 -3
- data/spec/support/v4.2/app/mailers/.keep +0 -0
- data/spec/support/v4.2/app/mailers/application_mailer.rb +0 -3
- data/spec/support/v4.2/app/mailers/daily_prophet_mailer.rb +0 -9
- data/spec/support/v4.2/app/mailers/hogwarts_acceptance_mailer.rb +0 -13
- data/spec/support/v4.2/app/models/.keep +0 -0
- data/spec/support/v4.2/app/models/application_record.rb +0 -4
- data/spec/support/v4.2/app/models/concerns/.keep +0 -0
- data/spec/support/v4.2/app/models/concerns/mythical.rb +0 -11
- data/spec/support/v4.2/app/models/potion.rb +0 -5
- data/spec/support/v4.2/app/models/spell_book.rb +0 -11
- data/spec/support/v4.2/app/models/squib.rb +0 -6
- data/spec/support/v4.2/app/models/wand.rb +0 -19
- data/spec/support/v4.2/app/models/wizard.rb +0 -29
- data/spec/support/v4.2/app/views/layouts/application.html.erb +0 -13
- data/spec/support/v4.2/bin/bundle +0 -3
- data/spec/support/v4.2/bin/rails +0 -4
- data/spec/support/v4.2/bin/rake +0 -4
- data/spec/support/v4.2/bin/setup +0 -29
- data/spec/support/v4.2/config.ru +0 -4
- data/spec/support/v4.2/config/application.rb +0 -36
- data/spec/support/v4.2/config/boot.rb +0 -4
- data/spec/support/v4.2/config/database.yml +0 -25
- data/spec/support/v4.2/config/environment.rb +0 -6
- data/spec/support/v4.2/config/environments/development.rb +0 -29
- data/spec/support/v4.2/config/environments/production.rb +0 -68
- data/spec/support/v4.2/config/environments/test.rb +0 -43
- data/spec/support/v4.2/config/initializers/backtrace_silencers.rb +0 -8
- data/spec/support/v4.2/config/initializers/cookies_serializer.rb +0 -4
- data/spec/support/v4.2/config/initializers/filter_parameter_logging.rb +0 -5
- data/spec/support/v4.2/config/initializers/inflections.rb +0 -17
- data/spec/support/v4.2/config/initializers/mime_types.rb +0 -5
- data/spec/support/v4.2/config/initializers/session_store.rb +0 -4
- data/spec/support/v4.2/config/initializers/sorbet_rails.rb +0 -3
- data/spec/support/v4.2/config/initializers/to_time_preserves_timezone.rb +0 -11
- data/spec/support/v4.2/config/initializers/wrap_parameters.rb +0 -15
- data/spec/support/v4.2/config/locales/en.yml +0 -23
- data/spec/support/v4.2/config/routes.rb +0 -58
- data/spec/support/v4.2/db/migrate/20190620000001_create_wizards.rb +0 -13
- data/spec/support/v4.2/db/migrate/20190620000002_create_wands.rb +0 -12
- data/spec/support/v4.2/db/migrate/20190620000003_create_spell_books.rb +0 -10
- data/spec/support/v4.2/db/migrate/20190620000004_add_more_column_types_to_wands.rb +0 -17
- data/spec/support/v4.2/db/migrate/20190620000005_add_broom_to_wizard.rb +0 -6
- data/spec/support/v4.2/db/migrate/20190620000007_add_type_to_wizard.rb +0 -6
- data/spec/support/v4.2/db/schema.rb +0 -49
- data/spec/support/v4.2/db/seeds.rb +0 -8
- data/spec/support/v4.2/lib/assets/.keep +0 -0
- data/spec/support/v4.2/lib/mythical_rbi_plugin.rb +0 -16
- data/spec/support/v4.2/lib/tasks/.keep +0 -0
- data/spec/support/v4.2/log/.keep +0 -0
- data/spec/support/v4.2/sorbet_test_cases.rb +0 -238
- data/spec/support/v4.2/test/controllers/.keep +0 -0
- data/spec/support/v4.2/test/fixtures/.keep +0 -0
- data/spec/support/v4.2/test/helpers/.keep +0 -0
- data/spec/support/v4.2/test/integration/.keep +0 -0
- data/spec/support/v4.2/test/mailers/.keep +0 -0
- data/spec/support/v4.2/test/models/.keep +0 -0
- data/spec/support/v4.2/test/test_helper.rb +0 -11
- data/spec/support/v4.2/typed-override.yaml +0 -2
- data/spec/support/v4.2/vendor/assets/stylesheets/.keep +0 -0
- data/spec/test_data/v4.2/expected_application_mailer.rbi +0 -5
- data/spec/test_data/v4.2/expected_daily_prophet_mailer.rbi +0 -7
- data/spec/test_data/v4.2/expected_helpers.rbi +0 -22
- data/spec/test_data/v4.2/expected_helpers_with_application_and_devise_helpers.rbi +0 -29
- data/spec/test_data/v4.2/expected_hogwarts_acceptance_mailer.rbi +0 -10
- data/spec/test_data/v4.2/expected_no_routes.rbi +0 -4
- data/spec/test_data/v4.2/expected_potion.rbi +0 -657
- data/spec/test_data/v4.2/expected_routes.rbi +0 -19
- data/spec/test_data/v4.2/expected_spell_book.rbi +0 -771
- data/spec/test_data/v4.2/expected_squib.rbi +0 -912
- data/spec/test_data/v4.2/expected_srb_tc_output.txt +0 -65
- data/spec/test_data/v4.2/expected_wand.rbi +0 -873
- data/spec/test_data/v4.2/expected_wizard.rbi +0 -912
- data/spec/test_data/v4.2/expected_wizard_wo_spellbook.rbi +0 -912
@@ -122,86 +122,86 @@ class SpellBook < ApplicationRecord
|
|
122
122
|
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
|
123
123
|
def self.unscoped(&block); end
|
124
124
|
|
125
|
-
sig { params(args: T.untyped
|
126
|
-
def self.select(*args
|
125
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
126
|
+
def self.select(*args); end
|
127
127
|
|
128
|
-
sig { params(args: T.untyped
|
129
|
-
def self.order(*args
|
128
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
129
|
+
def self.order(*args); end
|
130
130
|
|
131
|
-
sig { params(args: T.untyped
|
132
|
-
def self.reorder(*args
|
131
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
132
|
+
def self.reorder(*args); end
|
133
133
|
|
134
|
-
sig { params(args: T.untyped
|
135
|
-
def self.group(*args
|
134
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
135
|
+
def self.group(*args); end
|
136
136
|
|
137
|
-
sig { params(args: T.untyped
|
138
|
-
def self.limit(*args
|
137
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
138
|
+
def self.limit(*args); end
|
139
139
|
|
140
|
-
sig { params(args: T.untyped
|
141
|
-
def self.offset(*args
|
140
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
141
|
+
def self.offset(*args); end
|
142
142
|
|
143
|
-
sig { params(args: T.untyped
|
144
|
-
def self.joins(*args
|
143
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
144
|
+
def self.joins(*args); end
|
145
145
|
|
146
|
-
sig { params(args: T.untyped
|
147
|
-
def self.left_joins(*args
|
146
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
147
|
+
def self.left_joins(*args); end
|
148
148
|
|
149
|
-
sig { params(args: T.untyped
|
150
|
-
def self.left_outer_joins(*args
|
149
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
150
|
+
def self.left_outer_joins(*args); end
|
151
151
|
|
152
|
-
sig { params(args: T.untyped
|
153
|
-
def self.where(*args
|
152
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
153
|
+
def self.where(*args); end
|
154
154
|
|
155
|
-
sig { params(args: T.untyped
|
156
|
-
def self.rewhere(*args
|
155
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
156
|
+
def self.rewhere(*args); end
|
157
157
|
|
158
|
-
sig { params(args: T.untyped
|
159
|
-
def self.preload(*args
|
158
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
159
|
+
def self.preload(*args); end
|
160
160
|
|
161
|
-
sig { params(args: T.untyped
|
162
|
-
def self.eager_load(*args
|
161
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
162
|
+
def self.eager_load(*args); end
|
163
163
|
|
164
|
-
sig { params(args: T.untyped
|
165
|
-
def self.includes(*args
|
164
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
165
|
+
def self.includes(*args); end
|
166
166
|
|
167
|
-
sig { params(args: T.untyped
|
168
|
-
def self.from(*args
|
167
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
168
|
+
def self.from(*args); end
|
169
169
|
|
170
|
-
sig { params(args: T.untyped
|
171
|
-
def self.lock(*args
|
170
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
171
|
+
def self.lock(*args); end
|
172
172
|
|
173
|
-
sig { params(args: T.untyped
|
174
|
-
def self.readonly(*args
|
173
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
174
|
+
def self.readonly(*args); end
|
175
175
|
|
176
|
-
sig { params(args: T.untyped
|
177
|
-
def self.
|
176
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
177
|
+
def self.or(*args); end
|
178
178
|
|
179
|
-
sig { params(args: T.untyped
|
180
|
-
def self.
|
179
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
180
|
+
def self.having(*args); end
|
181
181
|
|
182
|
-
sig { params(args: T.untyped
|
183
|
-
def self.
|
182
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
183
|
+
def self.create_with(*args); end
|
184
184
|
|
185
|
-
sig { params(args: T.untyped
|
186
|
-
def self.
|
185
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
186
|
+
def self.distinct(*args); end
|
187
187
|
|
188
|
-
sig { params(args: T.untyped
|
189
|
-
def self.
|
188
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
189
|
+
def self.references(*args); end
|
190
190
|
|
191
|
-
sig { params(args: T.untyped
|
192
|
-
def self.
|
191
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
192
|
+
def self.none(*args); end
|
193
193
|
|
194
|
-
sig { params(args: T.untyped
|
195
|
-
def self.
|
194
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
195
|
+
def self.unscope(*args); end
|
196
196
|
|
197
|
-
sig { params(args: T.untyped
|
198
|
-
def self.
|
197
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
198
|
+
def self.merge(*args); end
|
199
199
|
|
200
|
-
sig { params(args: T.untyped
|
201
|
-
def self.
|
200
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
201
|
+
def self.except(*args); end
|
202
202
|
|
203
203
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
|
204
|
-
def self.
|
204
|
+
def self.extending(*args, &block); end
|
205
205
|
|
206
206
|
sig { params(args: T.untyped).returns(SpellBook) }
|
207
207
|
def self.find(*args); end
|
@@ -296,86 +296,86 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
|
|
296
296
|
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
|
297
297
|
def unscoped(&block); end
|
298
298
|
|
299
|
-
sig { params(args: T.untyped
|
300
|
-
def select(*args
|
299
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
300
|
+
def select(*args); end
|
301
301
|
|
302
|
-
sig { params(args: T.untyped
|
303
|
-
def order(*args
|
302
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
303
|
+
def order(*args); end
|
304
304
|
|
305
|
-
sig { params(args: T.untyped
|
306
|
-
def reorder(*args
|
305
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
306
|
+
def reorder(*args); end
|
307
307
|
|
308
|
-
sig { params(args: T.untyped
|
309
|
-
def group(*args
|
308
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
309
|
+
def group(*args); end
|
310
310
|
|
311
|
-
sig { params(args: T.untyped
|
312
|
-
def limit(*args
|
311
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
312
|
+
def limit(*args); end
|
313
313
|
|
314
|
-
sig { params(args: T.untyped
|
315
|
-
def offset(*args
|
314
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
315
|
+
def offset(*args); end
|
316
316
|
|
317
|
-
sig { params(args: T.untyped
|
318
|
-
def joins(*args
|
317
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
318
|
+
def joins(*args); end
|
319
319
|
|
320
|
-
sig { params(args: T.untyped
|
321
|
-
def left_joins(*args
|
320
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
321
|
+
def left_joins(*args); end
|
322
322
|
|
323
|
-
sig { params(args: T.untyped
|
324
|
-
def left_outer_joins(*args
|
323
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
324
|
+
def left_outer_joins(*args); end
|
325
325
|
|
326
|
-
sig { params(args: T.untyped
|
327
|
-
def where(*args
|
326
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
327
|
+
def where(*args); end
|
328
328
|
|
329
|
-
sig { params(args: T.untyped
|
330
|
-
def rewhere(*args
|
329
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
330
|
+
def rewhere(*args); end
|
331
331
|
|
332
|
-
sig { params(args: T.untyped
|
333
|
-
def preload(*args
|
332
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
333
|
+
def preload(*args); end
|
334
334
|
|
335
|
-
sig { params(args: T.untyped
|
336
|
-
def eager_load(*args
|
335
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
336
|
+
def eager_load(*args); end
|
337
337
|
|
338
|
-
sig { params(args: T.untyped
|
339
|
-
def includes(*args
|
338
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
339
|
+
def includes(*args); end
|
340
340
|
|
341
|
-
sig { params(args: T.untyped
|
342
|
-
def from(*args
|
341
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
342
|
+
def from(*args); end
|
343
343
|
|
344
|
-
sig { params(args: T.untyped
|
345
|
-
def lock(*args
|
344
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
345
|
+
def lock(*args); end
|
346
346
|
|
347
|
-
sig { params(args: T.untyped
|
348
|
-
def readonly(*args
|
347
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
348
|
+
def readonly(*args); end
|
349
349
|
|
350
|
-
sig { params(args: T.untyped
|
351
|
-
def
|
350
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
351
|
+
def or(*args); end
|
352
352
|
|
353
|
-
sig { params(args: T.untyped
|
354
|
-
def
|
353
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
354
|
+
def having(*args); end
|
355
355
|
|
356
|
-
sig { params(args: T.untyped
|
357
|
-
def
|
356
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
357
|
+
def create_with(*args); end
|
358
358
|
|
359
|
-
sig { params(args: T.untyped
|
360
|
-
def
|
359
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
360
|
+
def distinct(*args); end
|
361
361
|
|
362
|
-
sig { params(args: T.untyped
|
363
|
-
def
|
362
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
363
|
+
def references(*args); end
|
364
364
|
|
365
|
-
sig { params(args: T.untyped
|
366
|
-
def
|
365
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
366
|
+
def none(*args); end
|
367
367
|
|
368
|
-
sig { params(args: T.untyped
|
369
|
-
def
|
368
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
369
|
+
def unscope(*args); end
|
370
370
|
|
371
|
-
sig { params(args: T.untyped
|
372
|
-
def
|
371
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
372
|
+
def merge(*args); end
|
373
373
|
|
374
|
-
sig { params(args: T.untyped
|
375
|
-
def
|
374
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
375
|
+
def except(*args); end
|
376
376
|
|
377
377
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
|
378
|
-
def
|
378
|
+
def extending(*args, &block); end
|
379
379
|
|
380
380
|
sig { params(args: T.untyped).returns(SpellBook) }
|
381
381
|
def find(*args); end
|
@@ -478,86 +478,86 @@ class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRel
|
|
478
478
|
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
479
479
|
def unscoped(&block); end
|
480
480
|
|
481
|
-
sig { params(args: T.untyped
|
482
|
-
def select(*args
|
481
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
482
|
+
def select(*args); end
|
483
483
|
|
484
|
-
sig { params(args: T.untyped
|
485
|
-
def order(*args
|
484
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
485
|
+
def order(*args); end
|
486
486
|
|
487
|
-
sig { params(args: T.untyped
|
488
|
-
def reorder(*args
|
487
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
488
|
+
def reorder(*args); end
|
489
489
|
|
490
|
-
sig { params(args: T.untyped
|
491
|
-
def group(*args
|
490
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
491
|
+
def group(*args); end
|
492
492
|
|
493
|
-
sig { params(args: T.untyped
|
494
|
-
def limit(*args
|
493
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
494
|
+
def limit(*args); end
|
495
495
|
|
496
|
-
sig { params(args: T.untyped
|
497
|
-
def offset(*args
|
496
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
497
|
+
def offset(*args); end
|
498
498
|
|
499
|
-
sig { params(args: T.untyped
|
500
|
-
def joins(*args
|
499
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
500
|
+
def joins(*args); end
|
501
501
|
|
502
|
-
sig { params(args: T.untyped
|
503
|
-
def left_joins(*args
|
502
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
503
|
+
def left_joins(*args); end
|
504
504
|
|
505
|
-
sig { params(args: T.untyped
|
506
|
-
def left_outer_joins(*args
|
505
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
506
|
+
def left_outer_joins(*args); end
|
507
507
|
|
508
|
-
sig { params(args: T.untyped
|
509
|
-
def where(*args
|
508
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
509
|
+
def where(*args); end
|
510
510
|
|
511
|
-
sig { params(args: T.untyped
|
512
|
-
def rewhere(*args
|
511
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
512
|
+
def rewhere(*args); end
|
513
513
|
|
514
|
-
sig { params(args: T.untyped
|
515
|
-
def preload(*args
|
514
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
515
|
+
def preload(*args); end
|
516
516
|
|
517
|
-
sig { params(args: T.untyped
|
518
|
-
def eager_load(*args
|
517
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
518
|
+
def eager_load(*args); end
|
519
519
|
|
520
|
-
sig { params(args: T.untyped
|
521
|
-
def includes(*args
|
520
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
521
|
+
def includes(*args); end
|
522
522
|
|
523
|
-
sig { params(args: T.untyped
|
524
|
-
def from(*args
|
523
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
524
|
+
def from(*args); end
|
525
525
|
|
526
|
-
sig { params(args: T.untyped
|
527
|
-
def lock(*args
|
526
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
527
|
+
def lock(*args); end
|
528
528
|
|
529
|
-
sig { params(args: T.untyped
|
530
|
-
def readonly(*args
|
529
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
530
|
+
def readonly(*args); end
|
531
531
|
|
532
|
-
sig { params(args: T.untyped
|
533
|
-
def
|
532
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
533
|
+
def or(*args); end
|
534
534
|
|
535
|
-
sig { params(args: T.untyped
|
536
|
-
def
|
535
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
536
|
+
def having(*args); end
|
537
537
|
|
538
|
-
sig { params(args: T.untyped
|
539
|
-
def
|
538
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
539
|
+
def create_with(*args); end
|
540
540
|
|
541
|
-
sig { params(args: T.untyped
|
542
|
-
def
|
541
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
542
|
+
def distinct(*args); end
|
543
543
|
|
544
|
-
sig { params(args: T.untyped
|
545
|
-
def
|
544
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
545
|
+
def references(*args); end
|
546
546
|
|
547
|
-
sig { params(args: T.untyped
|
548
|
-
def
|
547
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
548
|
+
def none(*args); end
|
549
549
|
|
550
|
-
sig { params(args: T.untyped
|
551
|
-
def
|
550
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
551
|
+
def unscope(*args); end
|
552
552
|
|
553
|
-
sig { params(args: T.untyped
|
554
|
-
def
|
553
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
554
|
+
def merge(*args); end
|
555
555
|
|
556
|
-
sig { params(args: T.untyped
|
557
|
-
def
|
556
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
557
|
+
def except(*args); end
|
558
558
|
|
559
559
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
560
|
-
def
|
560
|
+
def extending(*args, &block); end
|
561
561
|
|
562
562
|
sig { params(args: T.untyped).returns(SpellBook) }
|
563
563
|
def find(*args); end
|
@@ -659,86 +659,86 @@ class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Assoc
|
|
659
659
|
sig { params(block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
660
660
|
def unscoped(&block); end
|
661
661
|
|
662
|
-
sig { params(args: T.untyped
|
663
|
-
def select(*args
|
662
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
663
|
+
def select(*args); end
|
664
664
|
|
665
|
-
sig { params(args: T.untyped
|
666
|
-
def order(*args
|
665
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
666
|
+
def order(*args); end
|
667
667
|
|
668
|
-
sig { params(args: T.untyped
|
669
|
-
def reorder(*args
|
668
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
669
|
+
def reorder(*args); end
|
670
670
|
|
671
|
-
sig { params(args: T.untyped
|
672
|
-
def group(*args
|
671
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
672
|
+
def group(*args); end
|
673
673
|
|
674
|
-
sig { params(args: T.untyped
|
675
|
-
def limit(*args
|
674
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
675
|
+
def limit(*args); end
|
676
676
|
|
677
|
-
sig { params(args: T.untyped
|
678
|
-
def offset(*args
|
677
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
678
|
+
def offset(*args); end
|
679
679
|
|
680
|
-
sig { params(args: T.untyped
|
681
|
-
def joins(*args
|
680
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
681
|
+
def joins(*args); end
|
682
682
|
|
683
|
-
sig { params(args: T.untyped
|
684
|
-
def left_joins(*args
|
683
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
684
|
+
def left_joins(*args); end
|
685
685
|
|
686
|
-
sig { params(args: T.untyped
|
687
|
-
def left_outer_joins(*args
|
686
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
687
|
+
def left_outer_joins(*args); end
|
688
688
|
|
689
|
-
sig { params(args: T.untyped
|
690
|
-
def where(*args
|
689
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
690
|
+
def where(*args); end
|
691
691
|
|
692
|
-
sig { params(args: T.untyped
|
693
|
-
def rewhere(*args
|
692
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
693
|
+
def rewhere(*args); end
|
694
694
|
|
695
|
-
sig { params(args: T.untyped
|
696
|
-
def preload(*args
|
695
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
696
|
+
def preload(*args); end
|
697
697
|
|
698
|
-
sig { params(args: T.untyped
|
699
|
-
def eager_load(*args
|
698
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
699
|
+
def eager_load(*args); end
|
700
700
|
|
701
|
-
sig { params(args: T.untyped
|
702
|
-
def includes(*args
|
701
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
702
|
+
def includes(*args); end
|
703
703
|
|
704
|
-
sig { params(args: T.untyped
|
705
|
-
def from(*args
|
704
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
705
|
+
def from(*args); end
|
706
706
|
|
707
|
-
sig { params(args: T.untyped
|
708
|
-
def lock(*args
|
707
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
708
|
+
def lock(*args); end
|
709
709
|
|
710
|
-
sig { params(args: T.untyped
|
711
|
-
def readonly(*args
|
710
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
711
|
+
def readonly(*args); end
|
712
712
|
|
713
|
-
sig { params(args: T.untyped
|
714
|
-
def
|
713
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
714
|
+
def or(*args); end
|
715
715
|
|
716
|
-
sig { params(args: T.untyped
|
717
|
-
def
|
716
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
717
|
+
def having(*args); end
|
718
718
|
|
719
|
-
sig { params(args: T.untyped
|
720
|
-
def
|
719
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
720
|
+
def create_with(*args); end
|
721
721
|
|
722
|
-
sig { params(args: T.untyped
|
723
|
-
def
|
722
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
723
|
+
def distinct(*args); end
|
724
724
|
|
725
|
-
sig { params(args: T.untyped
|
726
|
-
def
|
725
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
726
|
+
def references(*args); end
|
727
727
|
|
728
|
-
sig { params(args: T.untyped
|
729
|
-
def
|
728
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
729
|
+
def none(*args); end
|
730
730
|
|
731
|
-
sig { params(args: T.untyped
|
732
|
-
def
|
731
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
732
|
+
def unscope(*args); end
|
733
733
|
|
734
|
-
sig { params(args: T.untyped
|
735
|
-
def
|
734
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
735
|
+
def merge(*args); end
|
736
736
|
|
737
|
-
sig { params(args: T.untyped
|
738
|
-
def
|
737
|
+
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
738
|
+
def except(*args); end
|
739
739
|
|
740
740
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
741
|
-
def
|
741
|
+
def extending(*args, &block); end
|
742
742
|
|
743
743
|
sig { params(args: T.untyped).returns(SpellBook) }
|
744
744
|
def find(*args); end
|