sorbet-rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +77 -0
  3. data/Gemfile +6 -0
  4. data/Gemfile.lock +176 -0
  5. data/README.md +68 -45
  6. data/Rakefile +6 -0
  7. data/SECURITY.md +5 -0
  8. data/lib/sorbet-rails/model_rbi_formatter.rb +1 -1
  9. data/lib/sorbet-rails/tasks/rails_rbi.rake +60 -0
  10. data/rbis/activerecord.rbi +133 -0
  11. data/sorbet-rails.gemspec +31 -0
  12. data/spec/model_rbi_formatter_spec.rb +54 -0
  13. data/spec/rails_helper.rb +14 -0
  14. data/spec/routes_rbi_formatter_spec.rb +21 -0
  15. data/spec/spec_helper.rb +8 -0
  16. data/spec/support/rails_app/.ruby-version +1 -0
  17. data/spec/support/rails_app/Gemfile +45 -0
  18. data/spec/support/rails_app/Gemfile.lock +139 -0
  19. data/spec/support/rails_app/README.md +24 -0
  20. data/spec/support/rails_app/Rakefile +6 -0
  21. data/spec/support/rails_app/app/channels/application_cable/channel.rb +4 -0
  22. data/spec/support/rails_app/app/channels/application_cable/connection.rb +4 -0
  23. data/spec/support/rails_app/app/controllers/application_controller.rb +2 -0
  24. data/spec/support/rails_app/app/controllers/concerns/.keep +0 -0
  25. data/spec/support/rails_app/app/controllers/test_controller.rb +5 -0
  26. data/spec/support/rails_app/app/jobs/application_job.rb +2 -0
  27. data/spec/support/rails_app/app/mailers/application_mailer.rb +4 -0
  28. data/spec/support/rails_app/app/models/application_record.rb +3 -0
  29. data/spec/support/rails_app/app/models/concerns/.keep +0 -0
  30. data/spec/support/rails_app/app/models/spell_book.rb +6 -0
  31. data/spec/support/rails_app/app/models/wand.rb +15 -0
  32. data/spec/support/rails_app/app/models/wizard.rb +14 -0
  33. data/spec/support/rails_app/app/views/layouts/mailer.html.erb +13 -0
  34. data/spec/support/rails_app/app/views/layouts/mailer.text.erb +1 -0
  35. data/spec/support/rails_app/bin/bundle +3 -0
  36. data/spec/support/rails_app/bin/rails +9 -0
  37. data/spec/support/rails_app/bin/rake +9 -0
  38. data/spec/support/rails_app/bin/setup +33 -0
  39. data/spec/support/rails_app/bin/spring +17 -0
  40. data/spec/support/rails_app/bin/update +28 -0
  41. data/spec/support/rails_app/config.ru +5 -0
  42. data/spec/support/rails_app/config/application.rb +35 -0
  43. data/spec/support/rails_app/config/boot.rb +3 -0
  44. data/spec/support/rails_app/config/cable.yml +10 -0
  45. data/spec/support/rails_app/config/credentials.yml.enc +1 -0
  46. data/spec/support/rails_app/config/database.yml +25 -0
  47. data/spec/support/rails_app/config/environment.rb +5 -0
  48. data/spec/support/rails_app/config/environments/development.rb +54 -0
  49. data/spec/support/rails_app/config/environments/production.rb +85 -0
  50. data/spec/support/rails_app/config/environments/test.rb +46 -0
  51. data/spec/support/rails_app/config/initializers/application_controller_renderer.rb +8 -0
  52. data/spec/support/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  53. data/spec/support/rails_app/config/initializers/cors.rb +16 -0
  54. data/spec/support/rails_app/config/initializers/filter_parameter_logging.rb +4 -0
  55. data/spec/support/rails_app/config/initializers/inflections.rb +16 -0
  56. data/spec/support/rails_app/config/initializers/mime_types.rb +4 -0
  57. data/spec/support/rails_app/config/initializers/wrap_parameters.rb +14 -0
  58. data/spec/support/rails_app/config/locales/en.yml +33 -0
  59. data/spec/support/rails_app/config/puma.rb +34 -0
  60. data/spec/support/rails_app/config/routes.rb +5 -0
  61. data/spec/support/rails_app/config/spring.rb +6 -0
  62. data/spec/support/rails_app/config/storage.yml +34 -0
  63. data/spec/support/rails_app/db/migrate/20190620001234_create_wizards.rb +12 -0
  64. data/spec/support/rails_app/db/migrate/20190620003037_create_wands.rb +11 -0
  65. data/spec/support/rails_app/db/migrate/20190620003739_create_spell_books.rb +8 -0
  66. data/spec/support/rails_app/db/schema.rb +39 -0
  67. data/spec/support/rails_app/db/seeds.rb +7 -0
  68. data/spec/support/rails_app/lib/tasks/.keep +0 -0
  69. data/spec/support/rails_app/log/.keep +0 -0
  70. data/spec/support/rails_app/public/robots.txt +1 -0
  71. data/spec/support/rails_app/storage/.keep +0 -0
  72. data/spec/support/rails_app/test/controllers/.keep +0 -0
  73. data/spec/support/rails_app/test/fixtures/.keep +0 -0
  74. data/spec/support/rails_app/test/fixtures/files/.keep +0 -0
  75. data/spec/support/rails_app/test/integration/.keep +0 -0
  76. data/spec/support/rails_app/test/mailers/.keep +0 -0
  77. data/spec/support/rails_app/test/models/.keep +0 -0
  78. data/spec/support/rails_app/test/test_helper.rb +10 -0
  79. data/spec/support/rails_app/tmp/.keep +0 -0
  80. data/spec/support/rails_app/vendor/.keep +0 -0
  81. data/spec/test_data/expected_routes.rbi +43 -0
  82. data/spec/test_data/expected_wizard_no_book.rbi +0 -0
  83. data/spec/test_data/models/expected_wand.rbi +174 -0
  84. data/spec/test_data/models/expected_wizard.rbi +189 -0
  85. data/spec/test_data/models/expected_wizard_wo_spellbook.rbi +189 -0
  86. metadata +338 -3
@@ -0,0 +1,46 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure public file server for tests with Cache-Control for performance.
16
+ config.public_file_server.enabled = true
17
+ config.public_file_server.headers = {
18
+ 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
19
+ }
20
+
21
+ # Show full error reports and disable caching.
22
+ config.consider_all_requests_local = true
23
+ config.action_controller.perform_caching = false
24
+
25
+ # Raise exceptions instead of rendering exception templates.
26
+ config.action_dispatch.show_exceptions = false
27
+
28
+ # Disable request forgery protection in test environment.
29
+ config.action_controller.allow_forgery_protection = false
30
+
31
+ # Store uploaded files on the local file system in a temporary directory
32
+ config.active_storage.service = :test
33
+
34
+ config.action_mailer.perform_caching = false
35
+
36
+ # Tell Action Mailer not to deliver emails to the real world.
37
+ # The :test delivery method accumulates sent emails in the
38
+ # ActionMailer::Base.deliveries array.
39
+ config.action_mailer.delivery_method = :test
40
+
41
+ # Print deprecation notices to the stderr.
42
+ config.active_support.deprecation = :stderr
43
+
44
+ # Raises error for missing translations
45
+ # config.action_view.raise_on_missing_translations = true
46
+ end
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # ActiveSupport::Reloader.to_prepare do
4
+ # ApplicationController.renderer.defaults.merge!(
5
+ # http_host: 'example.org',
6
+ # https: false
7
+ # )
8
+ # end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Avoid CORS issues when API is called from the frontend app.
4
+ # Handle Cross-Origin Resource Sharing (CORS) in order to accept cross-origin AJAX requests.
5
+
6
+ # Read more: https://github.com/cyu/rack-cors
7
+
8
+ # Rails.application.config.middleware.insert_before 0, Rack::Cors do
9
+ # allow do
10
+ # origins 'example.com'
11
+ #
12
+ # resource '*',
13
+ # headers: :any,
14
+ # methods: [:get, :post, :put, :patch, :delete, :options, :head]
15
+ # end
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,33 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # The following keys must be escaped otherwise they will not be retrieved by
20
+ # the default I18n backend:
21
+ #
22
+ # true, false, on, off, yes, no
23
+ #
24
+ # Instead, surround them with single quotes.
25
+ #
26
+ # en:
27
+ # 'true': 'foo'
28
+ #
29
+ # To learn more, please read the Rails Internationalization guide
30
+ # available at http://guides.rubyonrails.org/i18n.html.
31
+
32
+ en:
33
+ hello: "Hello world"
@@ -0,0 +1,34 @@
1
+ # Puma can serve each request in a thread from an internal thread pool.
2
+ # The `threads` method setting takes two numbers: a minimum and maximum.
3
+ # Any libraries that use thread pools should be configured to match
4
+ # the maximum value specified for Puma. Default is set to 5 threads for minimum
5
+ # and maximum; this matches the default thread size of Active Record.
6
+ #
7
+ threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
8
+ threads threads_count, threads_count
9
+
10
+ # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
11
+ #
12
+ port ENV.fetch("PORT") { 3000 }
13
+
14
+ # Specifies the `environment` that Puma will run in.
15
+ #
16
+ environment ENV.fetch("RAILS_ENV") { "development" }
17
+
18
+ # Specifies the number of `workers` to boot in clustered mode.
19
+ # Workers are forked webserver processes. If using threads and workers together
20
+ # the concurrency of the application would be max `threads` * `workers`.
21
+ # Workers do not work on JRuby or Windows (both of which do not support
22
+ # processes).
23
+ #
24
+ # workers ENV.fetch("WEB_CONCURRENCY") { 2 }
25
+
26
+ # Use the `preload_app!` method when specifying a `workers` number.
27
+ # This directive tells Puma to first boot the application and load code
28
+ # before forking the application. This takes advantage of Copy On Write
29
+ # process behavior so workers use less memory.
30
+ #
31
+ # preload_app!
32
+
33
+ # Allow puma to be restarted by `rails restart` command.
34
+ plugin :tmp_restart
@@ -0,0 +1,5 @@
1
+ Rails.application.routes.draw do
2
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
3
+
4
+ get 'test/index' => 'test#index'
5
+ end
@@ -0,0 +1,6 @@
1
+ %w[
2
+ .ruby-version
3
+ .rbenv-vars
4
+ tmp/restart.txt
5
+ tmp/caching-dev.txt
6
+ ].each { |path| Spring.watch(path) }
@@ -0,0 +1,34 @@
1
+ test:
2
+ service: Disk
3
+ root: <%= Rails.root.join("tmp/storage") %>
4
+
5
+ local:
6
+ service: Disk
7
+ root: <%= Rails.root.join("storage") %>
8
+
9
+ # Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
+ # amazon:
11
+ # service: S3
12
+ # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13
+ # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14
+ # region: us-east-1
15
+ # bucket: your_own_bucket
16
+
17
+ # Remember not to checkin your GCS keyfile to a repository
18
+ # google:
19
+ # service: GCS
20
+ # project: your_project
21
+ # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
22
+ # bucket: your_own_bucket
23
+
24
+ # Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
25
+ # microsoft:
26
+ # service: AzureStorage
27
+ # storage_account_name: your_account_name
28
+ # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
29
+ # container: your_container_name
30
+
31
+ # mirror:
32
+ # service: Mirror
33
+ # primary: local
34
+ # mirrors: [ amazon, google, microsoft ]
@@ -0,0 +1,12 @@
1
+ class CreateWizards < ActiveRecord::Migration[5.2]
2
+ def change
3
+ create_table :wizards do |t|
4
+ t.string :name
5
+ t.integer :house
6
+ t.string :parent_email
7
+ t.text :notes
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,11 @@
1
+ class CreateWands < ActiveRecord::Migration[5.2]
2
+ def change
3
+ create_table :wands do |t|
4
+ t.references :wizard, unique: true, null: false
5
+ t.string :wood_type
6
+ t.integer :core_type
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,8 @@
1
+ class CreateSpellBooks < ActiveRecord::Migration[5.2]
2
+ def change
3
+ create_table :spell_books do |t|
4
+ t.string :name
5
+ t.references :wizard
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,39 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # Note that this schema.rb definition is the authoritative source for your
6
+ # database schema. If you need to create the application database on another
7
+ # system, you should be using db:schema:load, not running all the migrations
8
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(version: 2019_06_20_003739) do
14
+
15
+ create_table "spell_books", force: :cascade do |t|
16
+ t.string "name"
17
+ t.integer "wizard_id"
18
+ t.index ["wizard_id"], name: "index_spell_books_on_wizard_id"
19
+ end
20
+
21
+ create_table "wands", force: :cascade do |t|
22
+ t.integer "wizard_id", null: false
23
+ t.string "wood_type"
24
+ t.integer "core_type"
25
+ t.datetime "created_at", null: false
26
+ t.datetime "updated_at", null: false
27
+ t.index ["wizard_id"], name: "index_wands_on_wizard_id"
28
+ end
29
+
30
+ create_table "wizards", force: :cascade do |t|
31
+ t.string "name"
32
+ t.integer "house"
33
+ t.string "parent_email"
34
+ t.text "notes"
35
+ t.datetime "created_at", null: false
36
+ t.datetime "updated_at", null: false
37
+ end
38
+
39
+ end
@@ -0,0 +1,7 @@
1
+ # This file should contain all the record creation needed to seed the database with its default values.
2
+ # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
7
+ # Character.create(name: 'Luke', movie: movies.first)
File without changes
File without changes
@@ -0,0 +1 @@
1
+ # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
File without changes
@@ -0,0 +1,10 @@
1
+ ENV['RAILS_ENV'] ||= 'test'
2
+ require_relative '../config/environment'
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
7
+ fixtures :all
8
+
9
+ # Add more helper methods to be used by all tests here...
10
+ end
File without changes
File without changes
@@ -0,0 +1,43 @@
1
+ # This is an autogenerated file for routes helper methods
2
+
3
+ # typed: strong
4
+ class ActionController::Base
5
+ extend T::Sig
6
+
7
+ # Sigs for route /test/index(.:format)
8
+ sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
9
+ def test_index_path(*args, **kwargs); end
10
+ sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
11
+ def test_index_url(*args, **kwargs); end
12
+
13
+ # Sigs for route /rails/active_storage/blobs/:signed_id/*filename(.:format)
14
+ sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
15
+ def rails_service_blob_path(*args, **kwargs); end
16
+ sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
17
+ def rails_service_blob_url(*args, **kwargs); end
18
+
19
+ # Sigs for route /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format)
20
+ sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
21
+ def rails_blob_representation_path(*args, **kwargs); end
22
+ sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
23
+ def rails_blob_representation_url(*args, **kwargs); end
24
+
25
+ # Sigs for route /rails/active_storage/disk/:encoded_key/*filename(.:format)
26
+ sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
27
+ def rails_disk_service_path(*args, **kwargs); end
28
+ sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
29
+ def rails_disk_service_url(*args, **kwargs); end
30
+
31
+ # Sigs for route /rails/active_storage/disk/:encoded_token(.:format)
32
+ sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
33
+ def update_rails_disk_service_path(*args, **kwargs); end
34
+ sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
35
+ def update_rails_disk_service_url(*args, **kwargs); end
36
+
37
+ # Sigs for route /rails/active_storage/direct_uploads(.:format)
38
+ sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
39
+ def rails_direct_uploads_path(*args, **kwargs); end
40
+ sig { params(args: T.untyped, kwargs: T.untyped).returns(String) }
41
+ def rails_direct_uploads_url(*args, **kwargs); end
42
+
43
+ end
@@ -0,0 +1,174 @@
1
+ # This is an autogenerated file for dynamic methods in Wand
2
+ # Please rerun rake rails_rbi:models to regenerate.
3
+ # typed: strong
4
+
5
+ class Wand::Relation < ActiveRecord::Relation
6
+ include Wand::NamedScope
7
+ extend T::Generic
8
+ Elem = type_member(fixed: Wand)
9
+ end
10
+
11
+ class Wand < ApplicationRecord
12
+ extend T::Sig
13
+ extend T::Generic
14
+ extend Wand::NamedScope
15
+ Elem = type_template(fixed: Wand)
16
+
17
+ sig { returns(T::Boolean) }
18
+ def basilisk_horn?(); end
19
+
20
+ sig { returns(String) }
21
+ def core_type(); end
22
+
23
+ sig { params(value: T.nilable(T.any(Integer, String, Symbol))).void }
24
+ def core_type=(value); end
25
+
26
+ sig { returns(DateTime) }
27
+ def created_at(); end
28
+
29
+ sig { params(value: DateTime).void }
30
+ def created_at=(value); end
31
+
32
+ sig { returns(T::Boolean) }
33
+ def dragon_heartstring?(); end
34
+
35
+ sig { returns(Integer) }
36
+ def id(); end
37
+
38
+ sig { params(value: Integer).void }
39
+ def id=(value); end
40
+
41
+ sig { returns(T::Boolean) }
42
+ def phoenix_feather?(); end
43
+
44
+ sig { returns(T::Boolean) }
45
+ def unicorn_tail_hair?(); end
46
+
47
+ sig { returns(DateTime) }
48
+ def updated_at(); end
49
+
50
+ sig { params(value: DateTime).void }
51
+ def updated_at=(value); end
52
+
53
+ sig { returns(Wizard) }
54
+ def wizard(); end
55
+
56
+ sig { params(value: Wizard).void }
57
+ def wizard=(value); end
58
+
59
+ sig { returns(Integer) }
60
+ def wizard_id(); end
61
+
62
+ sig { params(value: Integer).void }
63
+ def wizard_id=(value); end
64
+
65
+ sig { params(value: T.nilable(String)).void }
66
+ def wood_type=(value); end
67
+
68
+ sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
69
+ def self.core_types(); end
70
+
71
+ end
72
+
73
+
74
+ module Wand::NamedScope
75
+ extend T::Sig
76
+
77
+ sig { returns(Wand::Relation) }
78
+ def all(); end
79
+
80
+ sig { params(args: T.untyped).returns(Wand::Relation) }
81
+ def basilisk_horn(*args); end
82
+
83
+ sig { params(args: T.untyped).returns(Wand::Relation) }
84
+ def dragon_heartstring(*args); end
85
+
86
+ sig { params(args: T.untyped).returns(Wand::Relation) }
87
+ def phoenix_feather(*args); end
88
+
89
+ sig { params(args: T.untyped).returns(Wand::Relation) }
90
+ def unicorn_tail_hair(*args); end
91
+
92
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
93
+ def select(*args, block); end
94
+
95
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
96
+ def order(*args, block); end
97
+
98
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
99
+ def reorder(*args, block); end
100
+
101
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
102
+ def group(*args, block); end
103
+
104
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
105
+ def limit(*args, block); end
106
+
107
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
108
+ def offset(*args, block); end
109
+
110
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
111
+ def joins(*args, block); end
112
+
113
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
114
+ def left_joins(*args, block); end
115
+
116
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
117
+ def left_outer_joins(*args, block); end
118
+
119
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
120
+ def where(*args, block); end
121
+
122
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
123
+ def rewhere(*args, block); end
124
+
125
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
126
+ def preload(*args, block); end
127
+
128
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
129
+ def eager_load(*args, block); end
130
+
131
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
132
+ def includes(*args, block); end
133
+
134
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
135
+ def from(*args, block); end
136
+
137
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
138
+ def lock(*args, block); end
139
+
140
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
141
+ def readonly(*args, block); end
142
+
143
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
144
+ def extending(*args, block); end
145
+
146
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
147
+ def or(*args, block); end
148
+
149
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
150
+ def having(*args, block); end
151
+
152
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
153
+ def create_with(*args, block); end
154
+
155
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
156
+ def distinct(*args, block); end
157
+
158
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
159
+ def references(*args, block); end
160
+
161
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
162
+ def none(*args, block); end
163
+
164
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
165
+ def unscope(*args, block); end
166
+
167
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
168
+ def merge(*args, block); end
169
+
170
+ sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::Relation) }
171
+ def except(*args, block); end
172
+
173
+ end
174
+