sorbet-rails 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -10
- data/.travis.yml +0 -2
- data/Gemfile +2 -2
- data/README.md +2 -1
- data/Rakefile +4 -15
- data/lib/sorbet-rails/gem_plugins/kaminari_plugin.rb +3 -4
- data/lib/sorbet-rails/model_plugins/active_record_enum.rb +0 -8
- data/lib/sorbet-rails/model_plugins/active_record_finder_methods.rb +3 -0
- data/lib/sorbet-rails/model_plugins/active_record_named_scope.rb +4 -3
- data/lib/sorbet-rails/model_plugins/active_record_querying.rb +6 -7
- data/lib/sorbet-rails/model_plugins/active_relation_where_not.rb +2 -2
- data/lib/sorbet-rails/model_plugins/custom_finder_methods.rb +2 -5
- data/lib/sorbet-rails/model_plugins/enumerable_collections.rb +15 -0
- data/lib/sorbet-rails/model_plugins/plugins.rb +1 -1
- data/lib/sorbet-rails/model_rbi_formatter.rb +11 -13
- data/lib/sorbet-rails/model_utils.rb +49 -2
- data/lib/sorbet-rails/railtie.rb +16 -1
- data/lib/sorbet-rails/routes_rbi_formatter.rb +48 -34
- data/sorbet-rails.gemspec +1 -1
- data/spec/bin/run_all_specs.sh +0 -2
- data/spec/bin/run_spec.sh +1 -5
- data/spec/generators/rails-template.rb +24 -17
- data/spec/generators/sorbet_test_cases.rb +78 -40
- data/spec/rails_helper.rb +1 -1
- data/spec/sorbet_spec.rb +16 -14
- data/spec/support/v4.2/Gemfile.lock +6 -6
- data/spec/support/v4.2/app/models/application_record.rb +1 -2
- data/spec/support/v4.2/app/models/spell_book.rb +6 -0
- data/spec/support/v4.2/app/models/wizard.rb +2 -0
- data/spec/support/v4.2/db/migrate/20190620000003_create_spell_books.rb +1 -0
- data/spec/support/v4.2/db/schema.rb +1 -0
- data/spec/support/v4.2/sorbet_test_cases.rb +78 -40
- data/spec/support/v5.0/Gemfile.lock +6 -6
- data/spec/support/v5.0/app/models/application_record.rb +1 -2
- data/spec/support/v5.0/app/models/spell_book.rb +7 -1
- data/spec/support/v5.0/app/models/wizard.rb +2 -0
- data/spec/support/v5.0/config/initializers/new_framework_defaults.rb +1 -1
- data/spec/support/v5.0/db/migrate/20190620000003_create_spell_books.rb +1 -0
- data/spec/support/v5.0/db/schema.rb +1 -0
- data/spec/support/v5.0/sorbet_test_cases.rb +78 -40
- data/spec/support/v5.1/Gemfile.lock +6 -6
- data/spec/support/v5.1/app/models/application_record.rb +1 -2
- data/spec/support/v5.1/app/models/spell_book.rb +7 -1
- data/spec/support/v5.1/app/models/wizard.rb +2 -0
- data/spec/support/v5.1/db/migrate/20190620000003_create_spell_books.rb +1 -0
- data/spec/support/v5.1/db/schema.rb +1 -0
- data/spec/support/v5.1/sorbet_test_cases.rb +78 -40
- data/spec/support/v5.2/Gemfile +1 -1
- data/spec/support/v5.2/Gemfile.lock +7 -7
- data/spec/support/v5.2/app/models/application_record.rb +1 -2
- data/spec/support/v5.2/app/models/spell_book.rb +7 -1
- data/spec/support/v5.2/app/models/wizard.rb +2 -0
- data/spec/support/v5.2/db/migrate/20190620000003_create_spell_books.rb +1 -0
- data/spec/support/v5.2/db/schema.rb +1 -0
- data/spec/support/v5.2/sorbet_test_cases.rb +78 -40
- data/spec/support/v6.0/Gemfile +2 -3
- data/spec/support/v6.0/Gemfile.lock +64 -64
- data/spec/support/v6.0/app/models/application_record.rb +1 -2
- data/spec/support/v6.0/app/models/spell_book.rb +7 -1
- data/spec/support/v6.0/app/models/wizard.rb +2 -0
- data/spec/support/v6.0/config/puma.rb +3 -0
- data/spec/support/v6.0/db/migrate/20190620000003_create_spell_books.rb +1 -0
- data/spec/support/v6.0/db/schema.rb +1 -0
- data/spec/support/v6.0/sorbet_test_cases.rb +78 -40
- data/spec/test_data/v4.2/expected_no_routes.rbi +3 -10
- data/spec/test_data/v4.2/expected_potion.rbi +356 -52
- data/spec/test_data/v4.2/expected_routes.rbi +10 -4
- data/spec/test_data/v4.2/expected_spell_book.rbi +428 -53
- data/spec/test_data/v4.2/expected_srb_tc_output.txt +1 -80
- data/spec/test_data/v4.2/expected_wand.rbi +347 -19
- data/spec/test_data/v4.2/expected_wizard.rbi +356 -16
- data/spec/test_data/v4.2/expected_wizard_wo_spellbook.rbi +356 -16
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +385 -51
- data/spec/test_data/v5.0/expected_no_routes.rbi +3 -10
- data/spec/test_data/v5.0/expected_potion.rbi +383 -52
- data/spec/test_data/v5.0/expected_routes.rbi +10 -4
- data/spec/test_data/v5.0/expected_schema_migration.rbi +385 -51
- data/spec/test_data/v5.0/expected_spell_book.rbi +455 -53
- data/spec/test_data/v5.0/expected_srb_tc_output.txt +1 -98
- data/spec/test_data/v5.0/expected_wand.rbi +374 -19
- data/spec/test_data/v5.0/expected_wizard.rbi +383 -16
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +383 -16
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +403 -51
- data/spec/test_data/v5.1/expected_no_routes.rbi +3 -10
- data/spec/test_data/v5.1/expected_potion.rbi +401 -52
- data/spec/test_data/v5.1/expected_routes.rbi +10 -4
- data/spec/test_data/v5.1/expected_schema_migration.rbi +403 -51
- data/spec/test_data/v5.1/expected_spell_book.rbi +473 -53
- data/spec/test_data/v5.1/expected_srb_tc_output.txt +1 -80
- data/spec/test_data/v5.1/expected_wand.rbi +392 -19
- data/spec/test_data/v5.1/expected_wizard.rbi +401 -16
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +401 -16
- data/spec/test_data/v5.2-no-sorbet/expected_attachment.rbi +403 -51
- data/spec/test_data/v5.2-no-sorbet/expected_blob.rbi +421 -51
- data/spec/test_data/v5.2-no-sorbet/expected_internal_metadata.rbi +403 -51
- data/spec/test_data/v5.2-no-sorbet/expected_no_routes.rbi +3 -10
- data/spec/test_data/v5.2-no-sorbet/expected_potion.rbi +401 -52
- data/spec/test_data/v5.2-no-sorbet/expected_routes.rbi +15 -4
- data/spec/test_data/v5.2-no-sorbet/expected_schema_migration.rbi +403 -51
- data/spec/test_data/v5.2-no-sorbet/expected_spell_book.rbi +473 -53
- data/spec/test_data/v5.2-no-sorbet/expected_srb_tc_output.txt +1 -80
- data/spec/test_data/v5.2-no-sorbet/expected_wand.rbi +392 -19
- data/spec/test_data/v5.2-no-sorbet/expected_wizard.rbi +401 -16
- data/spec/test_data/v5.2-no-sorbet/expected_wizard_wo_spellbook.rbi +401 -16
- data/spec/test_data/v5.2/expected_attachment.rbi +403 -51
- data/spec/test_data/v5.2/expected_blob.rbi +421 -51
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +403 -51
- data/spec/test_data/v5.2/expected_no_routes.rbi +3 -10
- data/spec/test_data/v5.2/expected_potion.rbi +401 -52
- data/spec/test_data/v5.2/expected_routes.rbi +15 -4
- data/spec/test_data/v5.2/expected_schema_migration.rbi +403 -51
- data/spec/test_data/v5.2/expected_spell_book.rbi +473 -53
- data/spec/test_data/v5.2/expected_srb_tc_output.txt +1 -80
- data/spec/test_data/v5.2/expected_wand.rbi +392 -19
- data/spec/test_data/v5.2/expected_wizard.rbi +401 -16
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +401 -16
- data/spec/test_data/v6.0/expected_attachment.rbi +439 -51
- data/spec/test_data/v6.0/expected_blob.rbi +457 -51
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +439 -51
- data/spec/test_data/v6.0/expected_no_routes.rbi +3 -10
- data/spec/test_data/v6.0/expected_potion.rbi +437 -52
- data/spec/test_data/v6.0/expected_routes.rbi +25 -4
- data/spec/test_data/v6.0/expected_schema_migration.rbi +439 -51
- data/spec/test_data/v6.0/expected_spell_book.rbi +545 -53
- data/spec/test_data/v6.0/expected_srb_tc_output.txt +1 -80
- data/spec/test_data/v6.0/expected_wand.rbi +464 -19
- data/spec/test_data/v6.0/expected_wizard.rbi +473 -16
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +473 -16
- metadata +29 -581
- data/spec/support/v4.2/sorbet/config +0 -2
- data/spec/support/v4.2/sorbet/rbi/gems/actionmailer.rbi +0 -267
- data/spec/support/v4.2/sorbet/rbi/gems/actionpack.rbi +0 -2883
- data/spec/support/v4.2/sorbet/rbi/gems/actionview.rbi +0 -978
- data/spec/support/v4.2/sorbet/rbi/gems/activejob.rbi +0 -19
- data/spec/support/v4.2/sorbet/rbi/gems/activemodel.rbi +0 -335
- data/spec/support/v4.2/sorbet/rbi/gems/activerecord.rbi +0 -3385
- data/spec/support/v4.2/sorbet/rbi/gems/activesupport.rbi +0 -1892
- data/spec/support/v4.2/sorbet/rbi/gems/arel.rbi +0 -1109
- data/spec/support/v4.2/sorbet/rbi/gems/byebug.rbi +0 -1039
- data/spec/support/v4.2/sorbet/rbi/gems/concurrent-ruby.rbi +0 -218
- data/spec/support/v4.2/sorbet/rbi/gems/crass.rbi +0 -92
- data/spec/support/v4.2/sorbet/rbi/gems/erubis.rbi +0 -265
- data/spec/support/v4.2/sorbet/rbi/gems/globalid.rbi +0 -98
- data/spec/support/v4.2/sorbet/rbi/gems/i18n.rbi +0 -186
- data/spec/support/v4.2/sorbet/rbi/gems/jbuilder.rbi +0 -99
- data/spec/support/v4.2/sorbet/rbi/gems/loofah.rbi +0 -129
- data/spec/support/v4.2/sorbet/rbi/gems/mail.rbi +0 -1091
- data/spec/support/v4.2/sorbet/rbi/gems/mini_mime.rbi +0 -51
- data/spec/support/v4.2/sorbet/rbi/gems/minitest.rbi +0 -276
- data/spec/support/v4.2/sorbet/rbi/gems/nokogiri.rbi +0 -1010
- data/spec/support/v4.2/sorbet/rbi/gems/parlour.rbi +0 -214
- data/spec/support/v4.2/sorbet/rbi/gems/rack-test.rbi +0 -145
- data/spec/support/v4.2/sorbet/rbi/gems/rack.rbi +0 -490
- data/spec/support/v4.2/sorbet/rbi/gems/rails-deprecated_sanitizer.rbi +0 -13
- data/spec/support/v4.2/sorbet/rbi/gems/rails-dom-testing.rbi +0 -76
- data/spec/support/v4.2/sorbet/rbi/gems/rails-html-sanitizer.rbi +0 -91
- data/spec/support/v4.2/sorbet/rbi/gems/railties.rbi +0 -617
- data/spec/support/v4.2/sorbet/rbi/gems/sqlite3.rbi +0 -345
- data/spec/support/v4.2/sorbet/rbi/gems/thor.rbi +0 -401
- data/spec/support/v4.2/sorbet/rbi/gems/thread_safe.rbi +0 -81
- data/spec/support/v4.2/sorbet/rbi/gems/tzinfo.rbi +0 -407
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +0 -13
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +0 -468
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +0 -422
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +0 -1263
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +0 -458
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +0 -8575
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +0 -99
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +0 -22
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +0 -111
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +0 -543
- data/spec/support/v4.2/sorbet/rbi/todo.rbi +0 -66
- data/spec/support/v5.0/sorbet/config +0 -2
- data/spec/support/v5.0/sorbet/rbi/gems/actionmailer.rbi +0 -331
- data/spec/support/v5.0/sorbet/rbi/gems/actionpack.rbi +0 -2987
- data/spec/support/v5.0/sorbet/rbi/gems/actionview.rbi +0 -1092
- data/spec/support/v5.0/sorbet/rbi/gems/activejob.rbi +0 -230
- data/spec/support/v5.0/sorbet/rbi/gems/activemodel.rbi +0 -562
- data/spec/support/v5.0/sorbet/rbi/gems/activerecord.rbi +0 -3684
- data/spec/support/v5.0/sorbet/rbi/gems/activesupport.rbi +0 -1943
- data/spec/support/v5.0/sorbet/rbi/gems/arel.rbi +0 -1222
- data/spec/support/v5.0/sorbet/rbi/gems/byebug.rbi +0 -1039
- data/spec/support/v5.0/sorbet/rbi/gems/concurrent-ruby.rbi +0 -1587
- data/spec/support/v5.0/sorbet/rbi/gems/crass.rbi +0 -92
- data/spec/support/v5.0/sorbet/rbi/gems/erubis.rbi +0 -265
- data/spec/support/v5.0/sorbet/rbi/gems/globalid.rbi +0 -98
- data/spec/support/v5.0/sorbet/rbi/gems/i18n.rbi +0 -191
- data/spec/support/v5.0/sorbet/rbi/gems/jbuilder.rbi +0 -99
- data/spec/support/v5.0/sorbet/rbi/gems/loofah.rbi +0 -129
- data/spec/support/v5.0/sorbet/rbi/gems/mail.rbi +0 -1091
- data/spec/support/v5.0/sorbet/rbi/gems/mini_mime.rbi +0 -51
- data/spec/support/v5.0/sorbet/rbi/gems/nokogiri.rbi +0 -1010
- data/spec/support/v5.0/sorbet/rbi/gems/parlour.rbi +0 -214
- data/spec/support/v5.0/sorbet/rbi/gems/puma.rbi +0 -570
- data/spec/support/v5.0/sorbet/rbi/gems/rack-test.rbi +0 -145
- data/spec/support/v5.0/sorbet/rbi/gems/rack.rbi +0 -489
- data/spec/support/v5.0/sorbet/rbi/gems/rails-html-sanitizer.rbi +0 -91
- data/spec/support/v5.0/sorbet/rbi/gems/railties.rbi +0 -472
- data/spec/support/v5.0/sorbet/rbi/gems/sqlite3.rbi +0 -345
- data/spec/support/v5.0/sorbet/rbi/gems/thread_safe.rbi +0 -81
- data/spec/support/v5.0/sorbet/rbi/gems/tzinfo.rbi +0 -407
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +0 -13
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +0 -468
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +0 -422
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +0 -1263
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +0 -458
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +0 -8575
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +0 -99
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +0 -22
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +0 -111
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +0 -543
- data/spec/support/v5.0/sorbet/rbi/todo.rbi +0 -68
- data/spec/support/v5.1/sorbet/config +0 -2
- data/spec/support/v5.1/sorbet/rbi/gems/actionmailer.rbi +0 -382
- data/spec/support/v5.1/sorbet/rbi/gems/actionpack.rbi +0 -3027
- data/spec/support/v5.1/sorbet/rbi/gems/actionview.rbi +0 -1114
- data/spec/support/v5.1/sorbet/rbi/gems/activejob.rbi +0 -238
- data/spec/support/v5.1/sorbet/rbi/gems/activemodel.rbi +0 -547
- data/spec/support/v5.1/sorbet/rbi/gems/activerecord.rbi +0 -3943
- data/spec/support/v5.1/sorbet/rbi/gems/activesupport.rbi +0 -2042
- data/spec/support/v5.1/sorbet/rbi/gems/arel.rbi +0 -1220
- data/spec/support/v5.1/sorbet/rbi/gems/bindex.rbi +0 -36
- data/spec/support/v5.1/sorbet/rbi/gems/byebug.rbi +0 -1039
- data/spec/support/v5.1/sorbet/rbi/gems/concurrent-ruby.rbi +0 -1587
- data/spec/support/v5.1/sorbet/rbi/gems/crass.rbi +0 -92
- data/spec/support/v5.1/sorbet/rbi/gems/erubi.rbi +0 -26
- data/spec/support/v5.1/sorbet/rbi/gems/globalid.rbi +0 -98
- data/spec/support/v5.1/sorbet/rbi/gems/i18n.rbi +0 -191
- data/spec/support/v5.1/sorbet/rbi/gems/jbuilder.rbi +0 -99
- data/spec/support/v5.1/sorbet/rbi/gems/loofah.rbi +0 -129
- data/spec/support/v5.1/sorbet/rbi/gems/mail.rbi +0 -1091
- data/spec/support/v5.1/sorbet/rbi/gems/mini_mime.rbi +0 -51
- data/spec/support/v5.1/sorbet/rbi/gems/nokogiri.rbi +0 -1010
- data/spec/support/v5.1/sorbet/rbi/gems/parlour.rbi +0 -214
- data/spec/support/v5.1/sorbet/rbi/gems/puma.rbi +0 -570
- data/spec/support/v5.1/sorbet/rbi/gems/rack-test.rbi +0 -161
- data/spec/support/v5.1/sorbet/rbi/gems/rack.rbi +0 -489
- data/spec/support/v5.1/sorbet/rbi/gems/rails-html-sanitizer.rbi +0 -91
- data/spec/support/v5.1/sorbet/rbi/gems/railties.rbi +0 -498
- data/spec/support/v5.1/sorbet/rbi/gems/sqlite3.rbi +0 -353
- data/spec/support/v5.1/sorbet/rbi/gems/thread_safe.rbi +0 -81
- data/spec/support/v5.1/sorbet/rbi/gems/tzinfo.rbi +0 -407
- data/spec/support/v5.1/sorbet/rbi/gems/web-console.rbi +0 -73
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +0 -13
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +0 -468
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +0 -422
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +0 -1263
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +0 -458
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +0 -8575
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +0 -99
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +0 -22
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +0 -111
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +0 -543
- data/spec/support/v5.1/sorbet/rbi/todo.rbi +0 -68
- data/spec/support/v5.2-no-sorbet/.gitignore +0 -31
- data/spec/support/v5.2-no-sorbet/Gemfile +0 -39
- data/spec/support/v5.2-no-sorbet/Gemfile.lock +0 -156
- data/spec/support/v5.2-no-sorbet/README.md +0 -24
- data/spec/support/v5.2-no-sorbet/Rakefile +0 -6
- data/spec/support/v5.2-no-sorbet/app/assets/config/manifest.js +0 -2
- data/spec/support/v5.2-no-sorbet/app/assets/images/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/app/assets/stylesheets/application.css +0 -15
- data/spec/support/v5.2-no-sorbet/app/controllers/application_controller.rb +0 -2
- data/spec/support/v5.2-no-sorbet/app/controllers/concerns/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/app/helpers/application_helper.rb +0 -2
- data/spec/support/v5.2-no-sorbet/app/helpers/bar_helper.rb +0 -2
- data/spec/support/v5.2-no-sorbet/app/helpers/baz_helper.rb +0 -2
- data/spec/support/v5.2-no-sorbet/app/helpers/foo_helper.rb +0 -2
- data/spec/support/v5.2-no-sorbet/app/jobs/application_job.rb +0 -2
- data/spec/support/v5.2-no-sorbet/app/mailers/application_mailer.rb +0 -4
- data/spec/support/v5.2-no-sorbet/app/models/application_record.rb +0 -4
- data/spec/support/v5.2-no-sorbet/app/models/concerns/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/app/models/concerns/mythical.rb +0 -10
- data/spec/support/v5.2-no-sorbet/app/models/potion.rb +0 -4
- data/spec/support/v5.2-no-sorbet/app/models/spell_book.rb +0 -4
- data/spec/support/v5.2-no-sorbet/app/models/wand.rb +0 -16
- data/spec/support/v5.2-no-sorbet/app/models/wizard.rb +0 -13
- data/spec/support/v5.2-no-sorbet/app/views/layouts/application.html.erb +0 -14
- data/spec/support/v5.2-no-sorbet/app/views/layouts/mailer.html.erb +0 -13
- data/spec/support/v5.2-no-sorbet/app/views/layouts/mailer.text.erb +0 -1
- data/spec/support/v5.2-no-sorbet/bin/bundle +0 -3
- data/spec/support/v5.2-no-sorbet/bin/rails +0 -4
- data/spec/support/v5.2-no-sorbet/bin/rake +0 -4
- data/spec/support/v5.2-no-sorbet/bin/setup +0 -36
- data/spec/support/v5.2-no-sorbet/bin/update +0 -31
- data/spec/support/v5.2-no-sorbet/bin/yarn +0 -11
- data/spec/support/v5.2-no-sorbet/config.ru +0 -5
- data/spec/support/v5.2-no-sorbet/config/application.rb +0 -33
- data/spec/support/v5.2-no-sorbet/config/boot.rb +0 -3
- data/spec/support/v5.2-no-sorbet/config/database.yml +0 -25
- data/spec/support/v5.2-no-sorbet/config/environment.rb +0 -5
- data/spec/support/v5.2-no-sorbet/config/environments/development.rb +0 -54
- data/spec/support/v5.2-no-sorbet/config/environments/production.rb +0 -80
- data/spec/support/v5.2-no-sorbet/config/environments/test.rb +0 -46
- data/spec/support/v5.2-no-sorbet/config/initializers/application_controller_renderer.rb +0 -8
- data/spec/support/v5.2-no-sorbet/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/support/v5.2-no-sorbet/config/initializers/content_security_policy.rb +0 -25
- data/spec/support/v5.2-no-sorbet/config/initializers/cookies_serializer.rb +0 -5
- data/spec/support/v5.2-no-sorbet/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/support/v5.2-no-sorbet/config/initializers/inflections.rb +0 -16
- data/spec/support/v5.2-no-sorbet/config/initializers/mime_types.rb +0 -4
- data/spec/support/v5.2-no-sorbet/config/initializers/sorbet_rails.rb +0 -3
- data/spec/support/v5.2-no-sorbet/config/initializers/wrap_parameters.rb +0 -14
- data/spec/support/v5.2-no-sorbet/config/locales/en.yml +0 -33
- data/spec/support/v5.2-no-sorbet/config/puma.rb +0 -34
- data/spec/support/v5.2-no-sorbet/config/routes.rb +0 -4
- data/spec/support/v5.2-no-sorbet/config/storage.yml +0 -34
- data/spec/support/v5.2-no-sorbet/db/migrate/20190620000001_create_wizards.rb +0 -12
- data/spec/support/v5.2-no-sorbet/db/migrate/20190620000002_create_wands.rb +0 -11
- data/spec/support/v5.2-no-sorbet/db/migrate/20190620000003_create_spell_books.rb +0 -8
- data/spec/support/v5.2-no-sorbet/db/migrate/20190620000004_add_more_column_types_to_wands.rb +0 -15
- data/spec/support/v5.2-no-sorbet/db/schema.rb +0 -47
- data/spec/support/v5.2-no-sorbet/db/seeds.rb +0 -7
- data/spec/support/v5.2-no-sorbet/lib/assets/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/lib/mythical_rbi_plugin.rb +0 -16
- data/spec/support/v5.2-no-sorbet/lib/tasks/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/log/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/package.json +0 -5
- data/spec/support/v5.2-no-sorbet/sorbet_test_cases.rb +0 -123
- data/spec/support/v5.2-no-sorbet/storage/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/tmp/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/typed-override.yaml +0 -2
- data/spec/support/v5.2-no-sorbet/vendor/.keep +0 -0
- data/spec/support/v5.2/sorbet/config +0 -2
- data/spec/support/v5.2/sorbet/rbi/gems/actionmailer.rbi +0 -391
- data/spec/support/v5.2/sorbet/rbi/gems/actionpack.rbi +0 -3109
- data/spec/support/v5.2/sorbet/rbi/gems/actionview.rbi +0 -1128
- data/spec/support/v5.2/sorbet/rbi/gems/activejob.rbi +0 -244
- data/spec/support/v5.2/sorbet/rbi/gems/activemodel.rbi +0 -741
- data/spec/support/v5.2/sorbet/rbi/gems/activerecord.rbi +0 -3827
- data/spec/support/v5.2/sorbet/rbi/gems/activestorage.rbi +0 -173
- data/spec/support/v5.2/sorbet/rbi/gems/activesupport.rbi +0 -2167
- data/spec/support/v5.2/sorbet/rbi/gems/arel.rbi +0 -1252
- data/spec/support/v5.2/sorbet/rbi/gems/bindex.rbi +0 -36
- data/spec/support/v5.2/sorbet/rbi/gems/byebug.rbi +0 -1039
- data/spec/support/v5.2/sorbet/rbi/gems/concurrent-ruby.rbi +0 -1587
- data/spec/support/v5.2/sorbet/rbi/gems/crass.rbi +0 -92
- data/spec/support/v5.2/sorbet/rbi/gems/erubi.rbi +0 -26
- data/spec/support/v5.2/sorbet/rbi/gems/globalid.rbi +0 -98
- data/spec/support/v5.2/sorbet/rbi/gems/i18n.rbi +0 -191
- data/spec/support/v5.2/sorbet/rbi/gems/jbuilder.rbi +0 -99
- data/spec/support/v5.2/sorbet/rbi/gems/loofah.rbi +0 -129
- data/spec/support/v5.2/sorbet/rbi/gems/mail.rbi +0 -1091
- data/spec/support/v5.2/sorbet/rbi/gems/marcel.rbi +0 -12
- data/spec/support/v5.2/sorbet/rbi/gems/mini_mime.rbi +0 -51
- data/spec/support/v5.2/sorbet/rbi/gems/nokogiri.rbi +0 -1010
- data/spec/support/v5.2/sorbet/rbi/gems/parlour.rbi +0 -214
- data/spec/support/v5.2/sorbet/rbi/gems/puma.rbi +0 -570
- data/spec/support/v5.2/sorbet/rbi/gems/rack-test.rbi +0 -161
- data/spec/support/v5.2/sorbet/rbi/gems/rack.rbi +0 -493
- data/spec/support/v5.2/sorbet/rbi/gems/rails-html-sanitizer.rbi +0 -91
- data/spec/support/v5.2/sorbet/rbi/gems/railties.rbi +0 -508
- data/spec/support/v5.2/sorbet/rbi/gems/sqlite3.rbi +0 -353
- data/spec/support/v5.2/sorbet/rbi/gems/thread_safe.rbi +0 -81
- data/spec/support/v5.2/sorbet/rbi/gems/tzinfo.rbi +0 -407
- data/spec/support/v5.2/sorbet/rbi/gems/web-console.rbi +0 -73
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +0 -13
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +0 -468
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +0 -422
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activerecord/>=5.2/activerecord.rbi +0 -17
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +0 -1263
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activerecord/~>5.2.0/activerecord.rbi +0 -10
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +0 -458
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +0 -8575
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +0 -99
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +0 -22
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +0 -111
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +0 -543
- data/spec/support/v5.2/sorbet/rbi/todo.rbi +0 -68
- data/spec/support/v6.0/sorbet/config +0 -2
- data/spec/support/v6.0/sorbet/rbi/gems/actionmailbox.rbi +0 -56
- data/spec/support/v6.0/sorbet/rbi/gems/actionmailer.rbi +0 -20
- data/spec/support/v6.0/sorbet/rbi/gems/actionpack.rbi +0 -2154
- data/spec/support/v6.0/sorbet/rbi/gems/actiontext.rbi +0 -32
- data/spec/support/v6.0/sorbet/rbi/gems/actionview.rbi +0 -1135
- data/spec/support/v6.0/sorbet/rbi/gems/activejob.rbi +0 -80
- data/spec/support/v6.0/sorbet/rbi/gems/activemodel.rbi +0 -751
- data/spec/support/v6.0/sorbet/rbi/gems/activerecord.rbi +0 -5414
- data/spec/support/v6.0/sorbet/rbi/gems/activestorage.rbi +0 -221
- data/spec/support/v6.0/sorbet/rbi/gems/activesupport.rbi +0 -2251
- data/spec/support/v6.0/sorbet/rbi/gems/bindex.rbi +0 -36
- data/spec/support/v6.0/sorbet/rbi/gems/byebug.rbi +0 -1039
- data/spec/support/v6.0/sorbet/rbi/gems/concurrent-ruby.rbi +0 -1587
- data/spec/support/v6.0/sorbet/rbi/gems/crass.rbi +0 -92
- data/spec/support/v6.0/sorbet/rbi/gems/erubi.rbi +0 -26
- data/spec/support/v6.0/sorbet/rbi/gems/globalid.rbi +0 -98
- data/spec/support/v6.0/sorbet/rbi/gems/i18n.rbi +0 -191
- data/spec/support/v6.0/sorbet/rbi/gems/jbuilder.rbi +0 -99
- data/spec/support/v6.0/sorbet/rbi/gems/loofah.rbi +0 -129
- data/spec/support/v6.0/sorbet/rbi/gems/mail.rbi +0 -1542
- data/spec/support/v6.0/sorbet/rbi/gems/marcel.rbi +0 -12
- data/spec/support/v6.0/sorbet/rbi/gems/mini_mime.rbi +0 -51
- data/spec/support/v6.0/sorbet/rbi/gems/nokogiri.rbi +0 -1010
- data/spec/support/v6.0/sorbet/rbi/gems/parlour.rbi +0 -214
- data/spec/support/v6.0/sorbet/rbi/gems/puma.rbi +0 -570
- data/spec/support/v6.0/sorbet/rbi/gems/rack-test.rbi +0 -161
- data/spec/support/v6.0/sorbet/rbi/gems/rack.rbi +0 -481
- data/spec/support/v6.0/sorbet/rbi/gems/rails-html-sanitizer.rbi +0 -91
- data/spec/support/v6.0/sorbet/rbi/gems/railties.rbi +0 -548
- data/spec/support/v6.0/sorbet/rbi/gems/sqlite3.rbi +0 -353
- data/spec/support/v6.0/sorbet/rbi/gems/thread_safe.rbi +0 -81
- data/spec/support/v6.0/sorbet/rbi/gems/tzinfo.rbi +0 -407
- data/spec/support/v6.0/sorbet/rbi/gems/web-console.rbi +0 -72
- data/spec/support/v6.0/sorbet/rbi/gems/zeitwerk.rbi +0 -127
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +0 -13
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +0 -468
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +0 -422
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activerecord/>=5.2/activerecord.rbi +0 -17
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +0 -1263
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activerecord/~>6.0.0.rc1/activerecord.rbi +0 -10
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +0 -23
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +0 -458
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +0 -8575
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +0 -99
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +0 -22
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +0 -111
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +0 -543
- data/spec/support/v6.0/sorbet/rbi/todo.rbi +0 -70
@@ -1,80 +1 @@
|
|
1
|
-
|
2
|
-
15 |T.reveal_type(wizard.spell_books) # SpellBook::CollectionProxy
|
3
|
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
4
|
-
From:
|
5
|
-
sorbet_test_cases.rb:15:
|
6
|
-
15 |T.reveal_type(wizard.spell_books) # SpellBook::CollectionProxy
|
7
|
-
^^^^^^^^^^^^^^^^^^
|
8
|
-
|
9
|
-
sorbet_test_cases.rb:20: Revealed type: `Wizard::ActiveRecord_Relation` https://srb.help/7014
|
10
|
-
20 |T.reveal_type(Wizard.all) # Wizard::ActiveRecord_Relation
|
11
|
-
^^^^^^^^^^^^^^^^^^^^^^^^^
|
12
|
-
From:
|
13
|
-
sorbet_test_cases.rb:20:
|
14
|
-
20 |T.reveal_type(Wizard.all) # Wizard::ActiveRecord_Relation
|
15
|
-
^^^^^^^^^^
|
16
|
-
|
17
|
-
sorbet_test_cases.rb:24: Revealed type: `Wizard::ActiveRecord_Relation` https://srb.help/7014
|
18
|
-
24 |T.reveal_type(Wizard.recent)
|
19
|
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
20
|
-
From:
|
21
|
-
sorbet_test_cases.rb:24:
|
22
|
-
24 |T.reveal_type(Wizard.recent)
|
23
|
-
^^^^^^^^^^^^^
|
24
|
-
|
25
|
-
sorbet_test_cases.rb:28: Revealed type: `Wizard::ActiveRecord_Relation` https://srb.help/7014
|
26
|
-
28 |T.reveal_type(Wizard.Gryffindor)
|
27
|
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
28
|
-
From:
|
29
|
-
sorbet_test_cases.rb:28:
|
30
|
-
28 |T.reveal_type(Wizard.Gryffindor)
|
31
|
-
^^^^^^^^^^^^^^^^^
|
32
|
-
|
33
|
-
sorbet_test_cases.rb:32: Revealed type: `Wizard::ActiveRecord_Relation` https://srb.help/7014
|
34
|
-
32 |T.reveal_type(Wizard.Gryffindor.recent)
|
35
|
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
36
|
-
From:
|
37
|
-
sorbet_test_cases.rb:32:
|
38
|
-
32 |T.reveal_type(Wizard.Gryffindor.recent)
|
39
|
-
^^^^^^^^^^^^^^^^^^^^^^^^
|
40
|
-
|
41
|
-
sorbet_test_cases.rb:34: Revealed type: `Wizard::ActiveRecord_Relation` https://srb.help/7014
|
42
|
-
34 |T.reveal_type(Wizard.Gryffindor.recent.unscoped)
|
43
|
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
44
|
-
From:
|
45
|
-
sorbet_test_cases.rb:34:
|
46
|
-
34 |T.reveal_type(Wizard.Gryffindor.recent.unscoped)
|
47
|
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
48
|
-
|
49
|
-
sorbet_test_cases.rb:38: Revealed type: `Wizard::ActiveRecord_Relation` https://srb.help/7014
|
50
|
-
38 |T.reveal_type(Wizard.where(id: 1)) # Wizard::Relation
|
51
|
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
52
|
-
From:
|
53
|
-
sorbet_test_cases.rb:38:
|
54
|
-
38 |T.reveal_type(Wizard.where(id: 1)) # Wizard::Relation
|
55
|
-
^^^^^^^^^^^^^^^^^^^
|
56
|
-
|
57
|
-
sorbet_test_cases.rb:40: Revealed type: `Wizard::ActiveRecord_Relation` https://srb.help/7014
|
58
|
-
40 |T.reveal_type(Wizard.preload(:spell_books)) # Wizard::Relation
|
59
|
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
60
|
-
From:
|
61
|
-
sorbet_test_cases.rb:40:
|
62
|
-
40 |T.reveal_type(Wizard.preload(:spell_books)) # Wizard::Relation
|
63
|
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
64
|
-
|
65
|
-
sorbet_test_cases.rb:42: Revealed type: `Wizard::ActiveRecord_Relation` https://srb.help/7014
|
66
|
-
42 |T.reveal_type(Wizard.eager_load(:spell_books)) # Wizard::Relation
|
67
|
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
68
|
-
From:
|
69
|
-
sorbet_test_cases.rb:42:
|
70
|
-
42 |T.reveal_type(Wizard.eager_load(:spell_books)) # Wizard::Relation
|
71
|
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
72
|
-
|
73
|
-
sorbet_test_cases.rb:44: Revealed type: `Wizard::ActiveRecord_Relation` https://srb.help/7014
|
74
|
-
44 |T.reveal_type(Wizard.order(:id)) # Wizard::Relation
|
75
|
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
76
|
-
From:
|
77
|
-
sorbet_test_cases.rb:44:
|
78
|
-
44 |T.reveal_type(Wizard.order(:id)) # Wizard::Relation
|
79
|
-
^^^^^^^^^^^^^^^^^
|
80
|
-
Errors: 10
|
1
|
+
No errors! Great job.
|
@@ -196,26 +196,135 @@ class Wand < ApplicationRecord
|
|
196
196
|
include Wand::EnumInstanceMethods
|
197
197
|
include Wand::GeneratedAttributeMethods
|
198
198
|
include Wand::GeneratedAssociationMethods
|
199
|
-
extend SorbetRails::CustomFinderMethods
|
200
199
|
extend Wand::CustomFinderMethods
|
201
200
|
extend T::Sig
|
202
201
|
extend T::Generic
|
203
|
-
extend Wand::ModelRelationShared
|
204
202
|
|
205
203
|
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
206
204
|
def self.core_types; end
|
207
205
|
|
208
|
-
sig { returns(Wand::ActiveRecord_Relation) }
|
209
|
-
def self.
|
206
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
207
|
+
def self.basilisk_horn(*args); end
|
210
208
|
|
211
|
-
sig { returns(Wand::ActiveRecord_Relation) }
|
212
|
-
def self.dragon_heartstring; end
|
209
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
210
|
+
def self.dragon_heartstring(*args); end
|
213
211
|
|
214
|
-
sig { returns(Wand::ActiveRecord_Relation) }
|
215
|
-
def self.
|
212
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
213
|
+
def self.not_basilisk_horn(*args); end
|
214
|
+
|
215
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
216
|
+
def self.not_dragon_heartstring(*args); end
|
217
|
+
|
218
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
219
|
+
def self.not_phoenix_feather(*args); end
|
220
|
+
|
221
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
222
|
+
def self.not_unicorn_tail_hair(*args); end
|
223
|
+
|
224
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
225
|
+
def self.phoenix_feather(*args); end
|
226
|
+
|
227
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
228
|
+
def self.unicorn_tail_hair(*args); end
|
216
229
|
|
217
230
|
sig { returns(Wand::ActiveRecord_Relation) }
|
218
|
-
def self.
|
231
|
+
def self.all; end
|
232
|
+
|
233
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
234
|
+
def self.unscoped(&block); end
|
235
|
+
|
236
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
237
|
+
def self.select(*args, &block); end
|
238
|
+
|
239
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
240
|
+
def self.reselect(*args, &block); end
|
241
|
+
|
242
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
243
|
+
def self.order(*args, &block); end
|
244
|
+
|
245
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
246
|
+
def self.reorder(*args, &block); end
|
247
|
+
|
248
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
249
|
+
def self.group(*args, &block); end
|
250
|
+
|
251
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
252
|
+
def self.limit(*args, &block); end
|
253
|
+
|
254
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
255
|
+
def self.offset(*args, &block); end
|
256
|
+
|
257
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
258
|
+
def self.joins(*args, &block); end
|
259
|
+
|
260
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
261
|
+
def self.left_joins(*args, &block); end
|
262
|
+
|
263
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
264
|
+
def self.left_outer_joins(*args, &block); end
|
265
|
+
|
266
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
267
|
+
def self.where(*args, &block); end
|
268
|
+
|
269
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
270
|
+
def self.rewhere(*args, &block); end
|
271
|
+
|
272
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
273
|
+
def self.preload(*args, &block); end
|
274
|
+
|
275
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
276
|
+
def self.extract_associated(*args, &block); end
|
277
|
+
|
278
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
279
|
+
def self.eager_load(*args, &block); end
|
280
|
+
|
281
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
282
|
+
def self.includes(*args, &block); end
|
283
|
+
|
284
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
285
|
+
def self.from(*args, &block); end
|
286
|
+
|
287
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
288
|
+
def self.lock(*args, &block); end
|
289
|
+
|
290
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
291
|
+
def self.readonly(*args, &block); end
|
292
|
+
|
293
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
294
|
+
def self.extending(*args, &block); end
|
295
|
+
|
296
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
297
|
+
def self.or(*args, &block); end
|
298
|
+
|
299
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
300
|
+
def self.having(*args, &block); end
|
301
|
+
|
302
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
303
|
+
def self.create_with(*args, &block); end
|
304
|
+
|
305
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
306
|
+
def self.distinct(*args, &block); end
|
307
|
+
|
308
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
309
|
+
def self.references(*args, &block); end
|
310
|
+
|
311
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
312
|
+
def self.none(*args, &block); end
|
313
|
+
|
314
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
315
|
+
def self.unscope(*args, &block); end
|
316
|
+
|
317
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
318
|
+
def self.optimizer_hints(*args, &block); end
|
319
|
+
|
320
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
321
|
+
def self.merge(*args, &block); end
|
322
|
+
|
323
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
324
|
+
def self.except(*args, &block); end
|
325
|
+
|
326
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
327
|
+
def self.only(*args, &block); end
|
219
328
|
|
220
329
|
sig { params(args: T.untyped).returns(Wand) }
|
221
330
|
def self.find(*args); end
|
@@ -281,8 +390,13 @@ class Wand < ApplicationRecord
|
|
281
390
|
def self.mythicals; end
|
282
391
|
end
|
283
392
|
|
284
|
-
|
393
|
+
class Wand::ActiveRecord_Relation < ActiveRecord::Relation
|
394
|
+
include Wand::ActiveRelation_WhereNot
|
395
|
+
include Wand::CustomFinderMethods
|
396
|
+
include Enumerable
|
285
397
|
extend T::Sig
|
398
|
+
extend T::Generic
|
399
|
+
Elem = type_member(fixed: Wand)
|
286
400
|
|
287
401
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
288
402
|
def basilisk_horn(*args); end
|
@@ -305,9 +419,6 @@ module Wand::ModelRelationShared
|
|
305
419
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
306
420
|
def phoenix_feather(*args); end
|
307
421
|
|
308
|
-
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
309
|
-
def recent(*args); end
|
310
|
-
|
311
422
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
312
423
|
def unicorn_tail_hair(*args); end
|
313
424
|
|
@@ -409,18 +520,216 @@ module Wand::ModelRelationShared
|
|
409
520
|
|
410
521
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
411
522
|
def only(*args, &block); end
|
523
|
+
|
524
|
+
sig { params(args: T.untyped).returns(Wand) }
|
525
|
+
def find(*args); end
|
526
|
+
|
527
|
+
sig { params(args: T.untyped).returns(T.nilable(Wand)) }
|
528
|
+
def find_by(*args); end
|
529
|
+
|
530
|
+
sig { params(args: T.untyped).returns(Wand) }
|
531
|
+
def find_by!(*args); end
|
532
|
+
|
533
|
+
sig { returns(T.nilable(Wand)) }
|
534
|
+
def first; end
|
535
|
+
|
536
|
+
sig { returns(Wand) }
|
537
|
+
def first!; end
|
538
|
+
|
539
|
+
sig { returns(T.nilable(Wand)) }
|
540
|
+
def second; end
|
541
|
+
|
542
|
+
sig { returns(Wand) }
|
543
|
+
def second!; end
|
544
|
+
|
545
|
+
sig { returns(T.nilable(Wand)) }
|
546
|
+
def third; end
|
547
|
+
|
548
|
+
sig { returns(Wand) }
|
549
|
+
def third!; end
|
550
|
+
|
551
|
+
sig { returns(T.nilable(Wand)) }
|
552
|
+
def third_to_last; end
|
553
|
+
|
554
|
+
sig { returns(Wand) }
|
555
|
+
def third_to_last!; end
|
556
|
+
|
557
|
+
sig { returns(T.nilable(Wand)) }
|
558
|
+
def second_to_last; end
|
559
|
+
|
560
|
+
sig { returns(Wand) }
|
561
|
+
def second_to_last!; end
|
562
|
+
|
563
|
+
sig { returns(T.nilable(Wand)) }
|
564
|
+
def last; end
|
565
|
+
|
566
|
+
sig { returns(Wand) }
|
567
|
+
def last!; end
|
568
|
+
|
569
|
+
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
570
|
+
def exists?(conditions = nil); end
|
571
|
+
|
572
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
573
|
+
def any?(*args); end
|
574
|
+
|
575
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
576
|
+
def many?(*args); end
|
577
|
+
|
578
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
579
|
+
def none?(*args); end
|
580
|
+
|
581
|
+
sig { params(args: T.untyped).returns(T::Boolean) }
|
582
|
+
def one?(*args); end
|
583
|
+
|
584
|
+
sig { implementation.params(block: T.proc.params(e: Wand).void).void }
|
585
|
+
def each(&block); end
|
586
|
+
|
587
|
+
sig { params(level: T.nilable(Integer)).returns(T::Array[Wand]) }
|
588
|
+
def flatten(level); end
|
589
|
+
|
590
|
+
sig { returns(T::Array[Wand]) }
|
591
|
+
def to_a; end
|
592
|
+
|
593
|
+
sig do
|
594
|
+
type_parameters(:U).params(
|
595
|
+
blk: T.proc.params(arg0: Elem).returns(T.type_parameter(:U)),
|
596
|
+
)
|
597
|
+
.returns(T::Array[T.type_parameter(:U)])
|
598
|
+
end
|
599
|
+
def map(&blk); end
|
412
600
|
end
|
413
601
|
|
414
|
-
class Wand::
|
602
|
+
class Wand::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
415
603
|
include Wand::ActiveRelation_WhereNot
|
416
|
-
include SorbetRails::CustomFinderMethods
|
417
604
|
include Wand::CustomFinderMethods
|
418
605
|
include Enumerable
|
419
|
-
include Wand::ModelRelationShared
|
420
606
|
extend T::Sig
|
421
607
|
extend T::Generic
|
422
608
|
Elem = type_member(fixed: Wand)
|
423
609
|
|
610
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
611
|
+
def basilisk_horn(*args); end
|
612
|
+
|
613
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
614
|
+
def dragon_heartstring(*args); end
|
615
|
+
|
616
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
617
|
+
def not_basilisk_horn(*args); end
|
618
|
+
|
619
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
620
|
+
def not_dragon_heartstring(*args); end
|
621
|
+
|
622
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
623
|
+
def not_phoenix_feather(*args); end
|
624
|
+
|
625
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
626
|
+
def not_unicorn_tail_hair(*args); end
|
627
|
+
|
628
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
629
|
+
def phoenix_feather(*args); end
|
630
|
+
|
631
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
632
|
+
def unicorn_tail_hair(*args); end
|
633
|
+
|
634
|
+
sig { returns(Wand::ActiveRecord_AssociationRelation) }
|
635
|
+
def all; end
|
636
|
+
|
637
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
638
|
+
def unscoped(&block); end
|
639
|
+
|
640
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
641
|
+
def select(*args, &block); end
|
642
|
+
|
643
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
644
|
+
def reselect(*args, &block); end
|
645
|
+
|
646
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
647
|
+
def order(*args, &block); end
|
648
|
+
|
649
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
650
|
+
def reorder(*args, &block); end
|
651
|
+
|
652
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
653
|
+
def group(*args, &block); end
|
654
|
+
|
655
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
656
|
+
def limit(*args, &block); end
|
657
|
+
|
658
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
659
|
+
def offset(*args, &block); end
|
660
|
+
|
661
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
662
|
+
def joins(*args, &block); end
|
663
|
+
|
664
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
665
|
+
def left_joins(*args, &block); end
|
666
|
+
|
667
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
668
|
+
def left_outer_joins(*args, &block); end
|
669
|
+
|
670
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
671
|
+
def where(*args, &block); end
|
672
|
+
|
673
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
674
|
+
def rewhere(*args, &block); end
|
675
|
+
|
676
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
677
|
+
def preload(*args, &block); end
|
678
|
+
|
679
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
680
|
+
def extract_associated(*args, &block); end
|
681
|
+
|
682
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
683
|
+
def eager_load(*args, &block); end
|
684
|
+
|
685
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
686
|
+
def includes(*args, &block); end
|
687
|
+
|
688
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
689
|
+
def from(*args, &block); end
|
690
|
+
|
691
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
692
|
+
def lock(*args, &block); end
|
693
|
+
|
694
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
695
|
+
def readonly(*args, &block); end
|
696
|
+
|
697
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
698
|
+
def extending(*args, &block); end
|
699
|
+
|
700
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
701
|
+
def or(*args, &block); end
|
702
|
+
|
703
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
704
|
+
def having(*args, &block); end
|
705
|
+
|
706
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
707
|
+
def create_with(*args, &block); end
|
708
|
+
|
709
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
710
|
+
def distinct(*args, &block); end
|
711
|
+
|
712
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
713
|
+
def references(*args, &block); end
|
714
|
+
|
715
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
716
|
+
def none(*args, &block); end
|
717
|
+
|
718
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
719
|
+
def unscope(*args, &block); end
|
720
|
+
|
721
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
722
|
+
def optimizer_hints(*args, &block); end
|
723
|
+
|
724
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
725
|
+
def merge(*args, &block); end
|
726
|
+
|
727
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
728
|
+
def except(*args, &block); end
|
729
|
+
|
730
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
731
|
+
def only(*args, &block); end
|
732
|
+
|
424
733
|
sig { params(args: T.untyped).returns(Wand) }
|
425
734
|
def find(*args); end
|
426
735
|
|
@@ -489,18 +798,146 @@ class Wand::ActiveRecord_Relation < ActiveRecord::Relation
|
|
489
798
|
|
490
799
|
sig { returns(T::Array[Wand]) }
|
491
800
|
def to_a; end
|
801
|
+
|
802
|
+
sig do
|
803
|
+
type_parameters(:U).params(
|
804
|
+
blk: T.proc.params(arg0: Elem).returns(T.type_parameter(:U)),
|
805
|
+
)
|
806
|
+
.returns(T::Array[T.type_parameter(:U)])
|
807
|
+
end
|
808
|
+
def map(&blk); end
|
492
809
|
end
|
493
810
|
|
494
811
|
class Wand::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
495
|
-
include Wand::ActiveRelation_WhereNot
|
496
|
-
include SorbetRails::CustomFinderMethods
|
497
812
|
include Wand::CustomFinderMethods
|
498
813
|
include Enumerable
|
499
|
-
include Wand::ModelRelationShared
|
500
814
|
extend T::Sig
|
501
815
|
extend T::Generic
|
502
816
|
Elem = type_member(fixed: Wand)
|
503
817
|
|
818
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
819
|
+
def basilisk_horn(*args); end
|
820
|
+
|
821
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
822
|
+
def dragon_heartstring(*args); end
|
823
|
+
|
824
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
825
|
+
def not_basilisk_horn(*args); end
|
826
|
+
|
827
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
828
|
+
def not_dragon_heartstring(*args); end
|
829
|
+
|
830
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
831
|
+
def not_phoenix_feather(*args); end
|
832
|
+
|
833
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
834
|
+
def not_unicorn_tail_hair(*args); end
|
835
|
+
|
836
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
837
|
+
def phoenix_feather(*args); end
|
838
|
+
|
839
|
+
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
840
|
+
def unicorn_tail_hair(*args); end
|
841
|
+
|
842
|
+
sig { returns(Wand::ActiveRecord_AssociationRelation) }
|
843
|
+
def all; end
|
844
|
+
|
845
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
846
|
+
def unscoped(&block); end
|
847
|
+
|
848
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
849
|
+
def select(*args, &block); end
|
850
|
+
|
851
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
852
|
+
def reselect(*args, &block); end
|
853
|
+
|
854
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
855
|
+
def order(*args, &block); end
|
856
|
+
|
857
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
858
|
+
def reorder(*args, &block); end
|
859
|
+
|
860
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
861
|
+
def group(*args, &block); end
|
862
|
+
|
863
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
864
|
+
def limit(*args, &block); end
|
865
|
+
|
866
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
867
|
+
def offset(*args, &block); end
|
868
|
+
|
869
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
870
|
+
def joins(*args, &block); end
|
871
|
+
|
872
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
873
|
+
def left_joins(*args, &block); end
|
874
|
+
|
875
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
876
|
+
def left_outer_joins(*args, &block); end
|
877
|
+
|
878
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
879
|
+
def where(*args, &block); end
|
880
|
+
|
881
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
882
|
+
def rewhere(*args, &block); end
|
883
|
+
|
884
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
885
|
+
def preload(*args, &block); end
|
886
|
+
|
887
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
888
|
+
def extract_associated(*args, &block); end
|
889
|
+
|
890
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
891
|
+
def eager_load(*args, &block); end
|
892
|
+
|
893
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
894
|
+
def includes(*args, &block); end
|
895
|
+
|
896
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
897
|
+
def from(*args, &block); end
|
898
|
+
|
899
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
900
|
+
def lock(*args, &block); end
|
901
|
+
|
902
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
903
|
+
def readonly(*args, &block); end
|
904
|
+
|
905
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
906
|
+
def extending(*args, &block); end
|
907
|
+
|
908
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
909
|
+
def or(*args, &block); end
|
910
|
+
|
911
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
912
|
+
def having(*args, &block); end
|
913
|
+
|
914
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
915
|
+
def create_with(*args, &block); end
|
916
|
+
|
917
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
918
|
+
def distinct(*args, &block); end
|
919
|
+
|
920
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
921
|
+
def references(*args, &block); end
|
922
|
+
|
923
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
924
|
+
def none(*args, &block); end
|
925
|
+
|
926
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
927
|
+
def unscope(*args, &block); end
|
928
|
+
|
929
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
930
|
+
def optimizer_hints(*args, &block); end
|
931
|
+
|
932
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
933
|
+
def merge(*args, &block); end
|
934
|
+
|
935
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
936
|
+
def except(*args, &block); end
|
937
|
+
|
938
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
939
|
+
def only(*args, &block); end
|
940
|
+
|
504
941
|
sig { params(args: T.untyped).returns(Wand) }
|
505
942
|
def find(*args); end
|
506
943
|
|
@@ -570,6 +1007,14 @@ class Wand::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associatio
|
|
570
1007
|
sig { returns(T::Array[Wand]) }
|
571
1008
|
def to_a; end
|
572
1009
|
|
1010
|
+
sig do
|
1011
|
+
type_parameters(:U).params(
|
1012
|
+
blk: T.proc.params(arg0: Elem).returns(T.type_parameter(:U)),
|
1013
|
+
)
|
1014
|
+
.returns(T::Array[T.type_parameter(:U)])
|
1015
|
+
end
|
1016
|
+
def map(&blk); end
|
1017
|
+
|
573
1018
|
sig { params(records: T.any(Wand, T::Array[Wand])).returns(T.self_type) }
|
574
1019
|
def <<(*records); end
|
575
1020
|
|