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
@@ -52,86 +52,86 @@ class ActiveStorage::Attachment < ActiveRecord::Base
|
|
52
52
|
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
53
53
|
def self.unscoped(&block); end
|
54
54
|
|
55
|
-
sig { params(args: T.untyped
|
56
|
-
def self.select(*args
|
55
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
56
|
+
def self.select(*args); end
|
57
57
|
|
58
|
-
sig { params(args: T.untyped
|
59
|
-
def self.order(*args
|
58
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
59
|
+
def self.order(*args); end
|
60
60
|
|
61
|
-
sig { params(args: T.untyped
|
62
|
-
def self.reorder(*args
|
61
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
62
|
+
def self.reorder(*args); end
|
63
63
|
|
64
|
-
sig { params(args: T.untyped
|
65
|
-
def self.group(*args
|
64
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
65
|
+
def self.group(*args); end
|
66
66
|
|
67
|
-
sig { params(args: T.untyped
|
68
|
-
def self.limit(*args
|
67
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
68
|
+
def self.limit(*args); end
|
69
69
|
|
70
|
-
sig { params(args: T.untyped
|
71
|
-
def self.offset(*args
|
70
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
71
|
+
def self.offset(*args); end
|
72
72
|
|
73
|
-
sig { params(args: T.untyped
|
74
|
-
def self.joins(*args
|
73
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
74
|
+
def self.joins(*args); end
|
75
75
|
|
76
|
-
sig { params(args: T.untyped
|
77
|
-
def self.left_joins(*args
|
76
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
77
|
+
def self.left_joins(*args); end
|
78
78
|
|
79
|
-
sig { params(args: T.untyped
|
80
|
-
def self.left_outer_joins(*args
|
79
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
80
|
+
def self.left_outer_joins(*args); end
|
81
81
|
|
82
|
-
sig { params(args: T.untyped
|
83
|
-
def self.where(*args
|
82
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
83
|
+
def self.where(*args); end
|
84
84
|
|
85
|
-
sig { params(args: T.untyped
|
86
|
-
def self.rewhere(*args
|
85
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
86
|
+
def self.rewhere(*args); end
|
87
87
|
|
88
|
-
sig { params(args: T.untyped
|
89
|
-
def self.preload(*args
|
88
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
89
|
+
def self.preload(*args); end
|
90
90
|
|
91
|
-
sig { params(args: T.untyped
|
92
|
-
def self.eager_load(*args
|
91
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
92
|
+
def self.eager_load(*args); end
|
93
93
|
|
94
|
-
sig { params(args: T.untyped
|
95
|
-
def self.includes(*args
|
94
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
95
|
+
def self.includes(*args); end
|
96
96
|
|
97
|
-
sig { params(args: T.untyped
|
98
|
-
def self.from(*args
|
97
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
98
|
+
def self.from(*args); end
|
99
99
|
|
100
|
-
sig { params(args: T.untyped
|
101
|
-
def self.lock(*args
|
100
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
101
|
+
def self.lock(*args); end
|
102
102
|
|
103
|
-
sig { params(args: T.untyped
|
104
|
-
def self.readonly(*args
|
103
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
104
|
+
def self.readonly(*args); end
|
105
105
|
|
106
|
-
sig { params(args: T.untyped
|
107
|
-
def self.
|
106
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
107
|
+
def self.or(*args); end
|
108
108
|
|
109
|
-
sig { params(args: T.untyped
|
110
|
-
def self.
|
109
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
110
|
+
def self.having(*args); end
|
111
111
|
|
112
|
-
sig { params(args: T.untyped
|
113
|
-
def self.
|
112
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
113
|
+
def self.create_with(*args); end
|
114
114
|
|
115
|
-
sig { params(args: T.untyped
|
116
|
-
def self.
|
115
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
116
|
+
def self.distinct(*args); end
|
117
117
|
|
118
|
-
sig { params(args: T.untyped
|
119
|
-
def self.
|
118
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
119
|
+
def self.references(*args); end
|
120
120
|
|
121
|
-
sig { params(args: T.untyped
|
122
|
-
def self.
|
121
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
122
|
+
def self.none(*args); end
|
123
123
|
|
124
|
-
sig { params(args: T.untyped
|
125
|
-
def self.
|
124
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
125
|
+
def self.unscope(*args); end
|
126
126
|
|
127
|
-
sig { params(args: T.untyped
|
128
|
-
def self.
|
127
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
128
|
+
def self.merge(*args); end
|
129
129
|
|
130
|
-
sig { params(args: T.untyped
|
131
|
-
def self.
|
130
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
131
|
+
def self.except(*args); end
|
132
132
|
|
133
133
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
134
|
-
def self.
|
134
|
+
def self.extending(*args, &block); end
|
135
135
|
|
136
136
|
sig { params(args: T.untyped).returns(ActiveStorage::Attachment) }
|
137
137
|
def self.find(*args); end
|
@@ -217,86 +217,86 @@ class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
|
|
217
217
|
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
218
218
|
def unscoped(&block); end
|
219
219
|
|
220
|
-
sig { params(args: T.untyped
|
221
|
-
def select(*args
|
220
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
221
|
+
def select(*args); end
|
222
222
|
|
223
|
-
sig { params(args: T.untyped
|
224
|
-
def order(*args
|
223
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
224
|
+
def order(*args); end
|
225
225
|
|
226
|
-
sig { params(args: T.untyped
|
227
|
-
def reorder(*args
|
226
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
227
|
+
def reorder(*args); end
|
228
228
|
|
229
|
-
sig { params(args: T.untyped
|
230
|
-
def group(*args
|
229
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
230
|
+
def group(*args); end
|
231
231
|
|
232
|
-
sig { params(args: T.untyped
|
233
|
-
def limit(*args
|
232
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
233
|
+
def limit(*args); end
|
234
234
|
|
235
|
-
sig { params(args: T.untyped
|
236
|
-
def offset(*args
|
235
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
236
|
+
def offset(*args); end
|
237
237
|
|
238
|
-
sig { params(args: T.untyped
|
239
|
-
def joins(*args
|
238
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
239
|
+
def joins(*args); end
|
240
240
|
|
241
|
-
sig { params(args: T.untyped
|
242
|
-
def left_joins(*args
|
241
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
242
|
+
def left_joins(*args); end
|
243
243
|
|
244
|
-
sig { params(args: T.untyped
|
245
|
-
def left_outer_joins(*args
|
244
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
245
|
+
def left_outer_joins(*args); end
|
246
246
|
|
247
|
-
sig { params(args: T.untyped
|
248
|
-
def where(*args
|
247
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
248
|
+
def where(*args); end
|
249
249
|
|
250
|
-
sig { params(args: T.untyped
|
251
|
-
def rewhere(*args
|
250
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
251
|
+
def rewhere(*args); end
|
252
252
|
|
253
|
-
sig { params(args: T.untyped
|
254
|
-
def preload(*args
|
253
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
254
|
+
def preload(*args); end
|
255
255
|
|
256
|
-
sig { params(args: T.untyped
|
257
|
-
def eager_load(*args
|
256
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
257
|
+
def eager_load(*args); end
|
258
258
|
|
259
|
-
sig { params(args: T.untyped
|
260
|
-
def includes(*args
|
259
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
260
|
+
def includes(*args); end
|
261
261
|
|
262
|
-
sig { params(args: T.untyped
|
263
|
-
def from(*args
|
262
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
263
|
+
def from(*args); end
|
264
264
|
|
265
|
-
sig { params(args: T.untyped
|
266
|
-
def lock(*args
|
265
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
266
|
+
def lock(*args); end
|
267
267
|
|
268
|
-
sig { params(args: T.untyped
|
269
|
-
def readonly(*args
|
268
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
269
|
+
def readonly(*args); end
|
270
270
|
|
271
|
-
sig { params(args: T.untyped
|
272
|
-
def
|
271
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
272
|
+
def or(*args); end
|
273
273
|
|
274
|
-
sig { params(args: T.untyped
|
275
|
-
def
|
274
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
275
|
+
def having(*args); end
|
276
276
|
|
277
|
-
sig { params(args: T.untyped
|
278
|
-
def
|
277
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
278
|
+
def create_with(*args); end
|
279
279
|
|
280
|
-
sig { params(args: T.untyped
|
281
|
-
def
|
280
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
281
|
+
def distinct(*args); end
|
282
282
|
|
283
|
-
sig { params(args: T.untyped
|
284
|
-
def
|
283
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
284
|
+
def references(*args); end
|
285
285
|
|
286
|
-
sig { params(args: T.untyped
|
287
|
-
def
|
286
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
287
|
+
def none(*args); end
|
288
288
|
|
289
|
-
sig { params(args: T.untyped
|
290
|
-
def
|
289
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
290
|
+
def unscope(*args); end
|
291
291
|
|
292
|
-
sig { params(args: T.untyped
|
293
|
-
def
|
292
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
293
|
+
def merge(*args); end
|
294
294
|
|
295
|
-
sig { params(args: T.untyped
|
296
|
-
def
|
295
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
296
|
+
def except(*args); end
|
297
297
|
|
298
298
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
299
|
-
def
|
299
|
+
def extending(*args, &block); end
|
300
300
|
|
301
301
|
sig { params(args: T.untyped).returns(ActiveStorage::Attachment) }
|
302
302
|
def find(*args); end
|
@@ -390,86 +390,86 @@ class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord
|
|
390
390
|
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
391
391
|
def unscoped(&block); end
|
392
392
|
|
393
|
-
sig { params(args: T.untyped
|
394
|
-
def select(*args
|
393
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
394
|
+
def select(*args); end
|
395
395
|
|
396
|
-
sig { params(args: T.untyped
|
397
|
-
def order(*args
|
396
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
397
|
+
def order(*args); end
|
398
398
|
|
399
|
-
sig { params(args: T.untyped
|
400
|
-
def reorder(*args
|
399
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
400
|
+
def reorder(*args); end
|
401
401
|
|
402
|
-
sig { params(args: T.untyped
|
403
|
-
def group(*args
|
402
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
403
|
+
def group(*args); end
|
404
404
|
|
405
|
-
sig { params(args: T.untyped
|
406
|
-
def limit(*args
|
405
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
406
|
+
def limit(*args); end
|
407
407
|
|
408
|
-
sig { params(args: T.untyped
|
409
|
-
def offset(*args
|
408
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
409
|
+
def offset(*args); end
|
410
410
|
|
411
|
-
sig { params(args: T.untyped
|
412
|
-
def joins(*args
|
411
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
412
|
+
def joins(*args); end
|
413
413
|
|
414
|
-
sig { params(args: T.untyped
|
415
|
-
def left_joins(*args
|
414
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
415
|
+
def left_joins(*args); end
|
416
416
|
|
417
|
-
sig { params(args: T.untyped
|
418
|
-
def left_outer_joins(*args
|
417
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
418
|
+
def left_outer_joins(*args); end
|
419
419
|
|
420
|
-
sig { params(args: T.untyped
|
421
|
-
def where(*args
|
420
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
421
|
+
def where(*args); end
|
422
422
|
|
423
|
-
sig { params(args: T.untyped
|
424
|
-
def rewhere(*args
|
423
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
424
|
+
def rewhere(*args); end
|
425
425
|
|
426
|
-
sig { params(args: T.untyped
|
427
|
-
def preload(*args
|
426
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
427
|
+
def preload(*args); end
|
428
428
|
|
429
|
-
sig { params(args: T.untyped
|
430
|
-
def eager_load(*args
|
429
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
430
|
+
def eager_load(*args); end
|
431
431
|
|
432
|
-
sig { params(args: T.untyped
|
433
|
-
def includes(*args
|
432
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
433
|
+
def includes(*args); end
|
434
434
|
|
435
|
-
sig { params(args: T.untyped
|
436
|
-
def from(*args
|
435
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
436
|
+
def from(*args); end
|
437
437
|
|
438
|
-
sig { params(args: T.untyped
|
439
|
-
def lock(*args
|
438
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
439
|
+
def lock(*args); end
|
440
440
|
|
441
|
-
sig { params(args: T.untyped
|
442
|
-
def readonly(*args
|
441
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
442
|
+
def readonly(*args); end
|
443
443
|
|
444
|
-
sig { params(args: T.untyped
|
445
|
-
def
|
444
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
445
|
+
def or(*args); end
|
446
446
|
|
447
|
-
sig { params(args: T.untyped
|
448
|
-
def
|
447
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
448
|
+
def having(*args); end
|
449
449
|
|
450
|
-
sig { params(args: T.untyped
|
451
|
-
def
|
450
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
451
|
+
def create_with(*args); end
|
452
452
|
|
453
|
-
sig { params(args: T.untyped
|
454
|
-
def
|
453
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
454
|
+
def distinct(*args); end
|
455
455
|
|
456
|
-
sig { params(args: T.untyped
|
457
|
-
def
|
456
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
457
|
+
def references(*args); end
|
458
458
|
|
459
|
-
sig { params(args: T.untyped
|
460
|
-
def
|
459
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
460
|
+
def none(*args); end
|
461
461
|
|
462
|
-
sig { params(args: T.untyped
|
463
|
-
def
|
462
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
463
|
+
def unscope(*args); end
|
464
464
|
|
465
|
-
sig { params(args: T.untyped
|
466
|
-
def
|
465
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
466
|
+
def merge(*args); end
|
467
467
|
|
468
|
-
sig { params(args: T.untyped
|
469
|
-
def
|
468
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
469
|
+
def except(*args); end
|
470
470
|
|
471
471
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
472
|
-
def
|
472
|
+
def extending(*args, &block); end
|
473
473
|
|
474
474
|
sig { params(args: T.untyped).returns(ActiveStorage::Attachment) }
|
475
475
|
def find(*args); end
|
@@ -562,86 +562,86 @@ class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < Act
|
|
562
562
|
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
563
563
|
def unscoped(&block); end
|
564
564
|
|
565
|
-
sig { params(args: T.untyped
|
566
|
-
def select(*args
|
565
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
566
|
+
def select(*args); end
|
567
567
|
|
568
|
-
sig { params(args: T.untyped
|
569
|
-
def order(*args
|
568
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
569
|
+
def order(*args); end
|
570
570
|
|
571
|
-
sig { params(args: T.untyped
|
572
|
-
def reorder(*args
|
571
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
572
|
+
def reorder(*args); end
|
573
573
|
|
574
|
-
sig { params(args: T.untyped
|
575
|
-
def group(*args
|
574
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
575
|
+
def group(*args); end
|
576
576
|
|
577
|
-
sig { params(args: T.untyped
|
578
|
-
def limit(*args
|
577
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
578
|
+
def limit(*args); end
|
579
579
|
|
580
|
-
sig { params(args: T.untyped
|
581
|
-
def offset(*args
|
580
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
581
|
+
def offset(*args); end
|
582
582
|
|
583
|
-
sig { params(args: T.untyped
|
584
|
-
def joins(*args
|
583
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
584
|
+
def joins(*args); end
|
585
585
|
|
586
|
-
sig { params(args: T.untyped
|
587
|
-
def left_joins(*args
|
586
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
587
|
+
def left_joins(*args); end
|
588
588
|
|
589
|
-
sig { params(args: T.untyped
|
590
|
-
def left_outer_joins(*args
|
589
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
590
|
+
def left_outer_joins(*args); end
|
591
591
|
|
592
|
-
sig { params(args: T.untyped
|
593
|
-
def where(*args
|
592
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
593
|
+
def where(*args); end
|
594
594
|
|
595
|
-
sig { params(args: T.untyped
|
596
|
-
def rewhere(*args
|
595
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
596
|
+
def rewhere(*args); end
|
597
597
|
|
598
|
-
sig { params(args: T.untyped
|
599
|
-
def preload(*args
|
598
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
599
|
+
def preload(*args); end
|
600
600
|
|
601
|
-
sig { params(args: T.untyped
|
602
|
-
def eager_load(*args
|
601
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
602
|
+
def eager_load(*args); end
|
603
603
|
|
604
|
-
sig { params(args: T.untyped
|
605
|
-
def includes(*args
|
604
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
605
|
+
def includes(*args); end
|
606
606
|
|
607
|
-
sig { params(args: T.untyped
|
608
|
-
def from(*args
|
607
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
608
|
+
def from(*args); end
|
609
609
|
|
610
|
-
sig { params(args: T.untyped
|
611
|
-
def lock(*args
|
610
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
611
|
+
def lock(*args); end
|
612
612
|
|
613
|
-
sig { params(args: T.untyped
|
614
|
-
def readonly(*args
|
613
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
614
|
+
def readonly(*args); end
|
615
615
|
|
616
|
-
sig { params(args: T.untyped
|
617
|
-
def
|
616
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
617
|
+
def or(*args); end
|
618
618
|
|
619
|
-
sig { params(args: T.untyped
|
620
|
-
def
|
619
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
620
|
+
def having(*args); end
|
621
621
|
|
622
|
-
sig { params(args: T.untyped
|
623
|
-
def
|
622
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
623
|
+
def create_with(*args); end
|
624
624
|
|
625
|
-
sig { params(args: T.untyped
|
626
|
-
def
|
625
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
626
|
+
def distinct(*args); end
|
627
627
|
|
628
|
-
sig { params(args: T.untyped
|
629
|
-
def
|
628
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
629
|
+
def references(*args); end
|
630
630
|
|
631
|
-
sig { params(args: T.untyped
|
632
|
-
def
|
631
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
632
|
+
def none(*args); end
|
633
633
|
|
634
|
-
sig { params(args: T.untyped
|
635
|
-
def
|
634
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
635
|
+
def unscope(*args); end
|
636
636
|
|
637
|
-
sig { params(args: T.untyped
|
638
|
-
def
|
637
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
638
|
+
def merge(*args); end
|
639
639
|
|
640
|
-
sig { params(args: T.untyped
|
641
|
-
def
|
640
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
641
|
+
def except(*args); end
|
642
642
|
|
643
643
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
644
|
-
def
|
644
|
+
def extending(*args, &block); end
|
645
645
|
|
646
646
|
sig { params(args: T.untyped).returns(ActiveStorage::Attachment) }
|
647
647
|
def find(*args); end
|