add first typed files
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class IndexedPostsController < ApplicationController
|
||||
def index
|
||||
@posts = IndexedPost.includes(postable: :file)
|
||||
@posts = IndexedPost.all
|
||||
active_sources = (params[:sources] || SourceHelper.all_source_names)
|
||||
unless SourceHelper.has_all_sources?(active_sources)
|
||||
postable_types = SourceHelper.source_names_to_class_names(active_sources)
|
||||
|
||||
@@ -1,24 +1,32 @@
|
||||
# typed: true
|
||||
|
||||
# Processes a page of submissions from the API search endpoint.
|
||||
#
|
||||
# This is a separate class so it can be used by the UserGalleryJob, which
|
||||
# needs to process multiple pages of submissions, and also by the
|
||||
# LatestPostsJob, which needs to process a single page of submissions.
|
||||
class Domain::Inkbunny::Job::ApiSearchPageProcessor
|
||||
extend T::Sig
|
||||
|
||||
SUBMISSIONS_PER_PAGE = 100
|
||||
MAX_LOOP_COUNT = 50
|
||||
attr_reader :changed_posts
|
||||
|
||||
sig { void }
|
||||
def initialize
|
||||
@shallow_posts_by_ib_post_id = {}
|
||||
@users_by_ib_user_id = {}
|
||||
@changed_posts = []
|
||||
@total_new_posts = 0
|
||||
@shallow_posts_by_ib_post_id =
|
||||
T.let({}, T::Hash[Integer, Domain::Inkbunny::Post])
|
||||
@users_by_ib_user_id = T.let({}, T::Hash[Integer, Domain::Inkbunny::User])
|
||||
@changed_posts = T.let([], T::Array[Domain::Inkbunny::Post])
|
||||
@total_new_posts = T.let(0, Integer)
|
||||
end
|
||||
|
||||
sig { returns(T::Array[Domain::Inkbunny::Post]) }
|
||||
def all_posts
|
||||
@shallow_posts_by_ib_post_id.values
|
||||
end
|
||||
|
||||
sig { returns(T::Array[Domain::Inkbunny::User]) }
|
||||
def all_users
|
||||
@users_by_ib_user_id.values
|
||||
end
|
||||
@@ -34,6 +42,12 @@ class Domain::Inkbunny::Job::ApiSearchPageProcessor
|
||||
# - num_new_posts: the number of new posts in the page for the submission_json that was just processed (indicates to the caller that the next page should be fetched)
|
||||
# - num_pages: the total number of pages in the submission_json that was just processed
|
||||
# - rid: the RID for the submission_json that was just processed
|
||||
sig do
|
||||
params(
|
||||
submissions_json: T::Hash[String, T.untyped],
|
||||
caused_by_entry: T.nilable(HttpLogEntry),
|
||||
).returns(T::Hash[String, T.any(Integer, String)])
|
||||
end
|
||||
def process!(submissions_json, caused_by_entry: nil)
|
||||
num_new_posts = 0
|
||||
submissions_json["submissions"].each do |submission_json|
|
||||
@@ -62,6 +76,14 @@ class Domain::Inkbunny::Job::ApiSearchPageProcessor
|
||||
# If rid is provided, then the page is for a specific RID set, constructed from a previous API search.
|
||||
# If ib_user_id is provided, then the page is for the user's gallery.
|
||||
# If neither is provided, then the page is for the latest posts.
|
||||
sig do
|
||||
params(
|
||||
ib_user_id: T.nilable(Integer),
|
||||
username: T.nilable(String),
|
||||
rid: T.nilable(String),
|
||||
page: Integer,
|
||||
).returns(String)
|
||||
end
|
||||
def self.build_api_search_url(
|
||||
ib_user_id: nil,
|
||||
username: nil,
|
||||
@@ -106,12 +128,16 @@ class Domain::Inkbunny::Job::ApiSearchPageProcessor
|
||||
# - pagecount
|
||||
# - rating_id
|
||||
# - submission_type_id
|
||||
sig do
|
||||
params(
|
||||
submission_json: T::Hash[String, T.untyped],
|
||||
caused_by_entry: T.nilable(HttpLogEntry),
|
||||
).returns(T::Boolean)
|
||||
end
|
||||
def upsert_post_from_submission_json!(submission_json, caused_by_entry: nil)
|
||||
ib_post_id = submission_json["submission_id"]&.to_i
|
||||
raise "ib_post_id is blank" if ib_post_id.blank?
|
||||
if post = @shallow_posts_by_ib_post_id[ib_post_id]
|
||||
return post
|
||||
end
|
||||
return false if post = @shallow_posts_by_ib_post_id[ib_post_id]
|
||||
|
||||
post =
|
||||
Domain::Inkbunny::Post.includes(:creator).find_or_initialize_by(
|
||||
@@ -126,16 +152,16 @@ class Domain::Inkbunny::Job::ApiSearchPageProcessor
|
||||
caused_by_entry: caused_by_entry,
|
||||
)
|
||||
|
||||
if post.creator && post.creator.ib_user_id != creator&.ib_user_id
|
||||
raise "post.creator.ib_user_id != creator.ib_user_id"
|
||||
if post.creator && (post.creator&.ib_user_id != creator.ib_user_id)
|
||||
raise "post.creator.ib_user_id (#{post.creator&.ib_user_id}) != creator.ib_user_id (#{creator.ib_user_id})"
|
||||
end
|
||||
|
||||
post.creator = creator
|
||||
post.shallow_updated_at = Time.now
|
||||
post.shallow_updated_at = Time.zone.now
|
||||
post.title = submission_json["title"]
|
||||
post.posted_at = Time.parse submission_json["create_datetime"]
|
||||
post.posted_at = Time.zone.parse(submission_json["create_datetime"])
|
||||
post.last_file_updated_at =
|
||||
Time.parse submission_json["last_file_update_datetime"]
|
||||
Time.zone.parse(submission_json["last_file_update_datetime"])
|
||||
post.num_files = submission_json["pagecount"]&.to_i
|
||||
post.rating = submission_json["rating_id"]&.to_i
|
||||
post.submission_type = submission_json["submission_type_id"]&.to_i
|
||||
@@ -143,7 +169,7 @@ class Domain::Inkbunny::Job::ApiSearchPageProcessor
|
||||
|
||||
post_changed =
|
||||
post.changed? || post.files.count != post.num_files ||
|
||||
post.creator.avatar_url_str.blank?
|
||||
creator.avatar_url_str.blank?
|
||||
|
||||
if post_changed
|
||||
post.shallow_update_log_entry = caused_by_entry
|
||||
@@ -160,6 +186,12 @@ class Domain::Inkbunny::Job::ApiSearchPageProcessor
|
||||
# Expected information from the endpoint (see fixture api_search.json):
|
||||
# - username
|
||||
# - user_id
|
||||
sig do
|
||||
params(
|
||||
submission_json: T::Hash[String, T.untyped],
|
||||
caused_by_entry: T.nilable(HttpLogEntry),
|
||||
).returns(Domain::Inkbunny::User)
|
||||
end
|
||||
def upsert_user_from_submission_json!(submission_json, caused_by_entry: nil)
|
||||
ib_user_id = submission_json["user_id"]&.to_i
|
||||
if user = @users_by_ib_user_id[ib_user_id]
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
module LiteTrail
|
||||
end
|
||||
@@ -1,98 +0,0 @@
|
||||
module LiteTrail::ActiveRecordClassMethods
|
||||
def has_lite_trail(
|
||||
schema_version:,
|
||||
map_attribute: nil,
|
||||
separate_versions_table: false
|
||||
)
|
||||
self_class = self
|
||||
|
||||
versions_table_name =
|
||||
if separate_versions_table.is_a?(String)
|
||||
separate_versions_table
|
||||
elsif separate_versions_table == true
|
||||
self.table_name.singularize + "_versions"
|
||||
else
|
||||
nil
|
||||
end
|
||||
|
||||
lite_trail_class =
|
||||
if versions_table_name.nil?
|
||||
::LiteTrail::Version
|
||||
else
|
||||
# separate table defined, use that, no need for polymorphism
|
||||
klass =
|
||||
Class.new(::LiteTrail::AbstractVersion) do
|
||||
self.table_name = versions_table_name
|
||||
belongs_to :item, class_name: self_class.to_s
|
||||
end
|
||||
|
||||
# "foo_bar_versions" => define "LiteTrail::PerTable::FooBarVersions"
|
||||
LiteTrail::PerTable.const_set(versions_table_name.camelize, klass)
|
||||
end
|
||||
|
||||
class_attribute :lite_trail_class
|
||||
self.lite_trail_class = lite_trail_class
|
||||
|
||||
class_attribute :lite_trail_options
|
||||
self.lite_trail_options = {
|
||||
schema_version: schema_version,
|
||||
map_attribute: map_attribute
|
||||
}
|
||||
|
||||
if !separate_versions_table
|
||||
# using the polymorphic versions table
|
||||
has_many :versions,
|
||||
-> { order(created_at: :asc) },
|
||||
class_name: lite_trail_class.name,
|
||||
as: :item,
|
||||
autosave: false,
|
||||
dependent: :destroy
|
||||
else
|
||||
has_many :versions,
|
||||
-> { order(created_at: :asc) },
|
||||
class_name: lite_trail_class.name,
|
||||
inverse_of: :item,
|
||||
foreign_key: :item_id,
|
||||
autosave: false,
|
||||
dependent: :destroy
|
||||
end
|
||||
|
||||
after_update do
|
||||
changes = self.saved_changes
|
||||
if changes.any?
|
||||
changes = changes.dup if map_attribute&.any?
|
||||
|
||||
map_attribute.each do |attr_name, mapper|
|
||||
if changes[attr_name]
|
||||
# value before the update
|
||||
changes[attr_name][0] = mapper.map_to(
|
||||
changes[attr_name][0]
|
||||
) if changes[attr_name][0]
|
||||
# value after the update
|
||||
changes[attr_name][1] = mapper.map_to(
|
||||
changes[attr_name][1]
|
||||
) if changes[attr_name][1]
|
||||
end
|
||||
end if map_attribute
|
||||
|
||||
if self.respond_to?(:updated_at)
|
||||
model_updated_at = self.updated_at
|
||||
else
|
||||
model_updated_at = Time.now
|
||||
end
|
||||
|
||||
self.versions << lite_trail_class.new(
|
||||
{
|
||||
event: "update",
|
||||
item: self,
|
||||
schema_version: schema_version,
|
||||
diff: changes,
|
||||
created_at: model_updated_at
|
||||
}
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
after_save { self.versions.filter(&:new_record?).each(&:save!) }
|
||||
end
|
||||
end
|
||||
@@ -1,19 +0,0 @@
|
||||
require "active_support"
|
||||
|
||||
module LiteTrail::MigrationExtensions
|
||||
def create_versions_table(table_name)
|
||||
versions_table_name = "#{table_name.to_s.singularize}_versions"
|
||||
create_table versions_table_name do |t|
|
||||
t.references :item
|
||||
t.integer :schema_version
|
||||
t.string :event, null: false
|
||||
t.jsonb :diff
|
||||
t.datetime :created_at, null: false
|
||||
end
|
||||
|
||||
add_foreign_key versions_table_name,
|
||||
table_name,
|
||||
column: :item_id,
|
||||
validate: true
|
||||
end
|
||||
end
|
||||
@@ -1,2 +0,0 @@
|
||||
module LiteTrail::PerTable
|
||||
end
|
||||
@@ -5,7 +5,6 @@ module HasIndexedPost
|
||||
has_one :indexed_post,
|
||||
as: :postable,
|
||||
dependent: :destroy,
|
||||
inverse_of: :postable,
|
||||
validate: false,
|
||||
autosave: true
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
class Domain::E621::Post < ReduxApplicationRecord
|
||||
self.table_name = "domain_e621_posts"
|
||||
has_lite_trail(schema_version: 1, separate_versions_table: true)
|
||||
|
||||
include HasIndexedPost
|
||||
include Discard::Model
|
||||
|
||||
@@ -1,13 +1,6 @@
|
||||
class Domain::Fa::Post < ReduxApplicationRecord
|
||||
self.table_name = "domain_fa_posts"
|
||||
|
||||
has_lite_trail(
|
||||
schema_version: 1,
|
||||
map_attribute: {
|
||||
file_sha256: ::Sha256AttributeMapper,
|
||||
},
|
||||
)
|
||||
|
||||
include HasIndexedPost
|
||||
include Pundit::Authorization
|
||||
|
||||
|
||||
@@ -2,8 +2,6 @@ class Domain::Fa::User < ReduxApplicationRecord
|
||||
self.table_name = "domain_fa_users"
|
||||
include Pundit::Authorization
|
||||
|
||||
has_lite_trail(schema_version: 1)
|
||||
|
||||
has_many :posts,
|
||||
class_name: "::Domain::Fa::Post",
|
||||
inverse_of: :creator,
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
class Domain::Fa::UserAvatar < ReduxApplicationRecord
|
||||
self.table_name = "domain_fa_user_avatars"
|
||||
has_lite_trail(
|
||||
schema_version: 1,
|
||||
separate_versions_table: true,
|
||||
map_attribute: {
|
||||
file_sha256: ::Sha256AttributeMapper,
|
||||
},
|
||||
)
|
||||
|
||||
enum :state,
|
||||
[
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
class Domain::Twitter::User < ReduxApplicationRecord
|
||||
self.table_name = "domain_twitter_users"
|
||||
has_lite_trail(schema_version: 1, separate_versions_table: true)
|
||||
|
||||
has_many :tweets,
|
||||
class_name: "Domain::Twitter::Tweet",
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# typed: strict
|
||||
|
||||
class IndexedPost < ReduxApplicationRecord
|
||||
extend T::Sig
|
||||
validates_presence_of :postable_id, :postable_type
|
||||
|
||||
belongs_to :postable, polymorphic: true, inverse_of: :indexed_post
|
||||
has_one :file, through: :postable
|
||||
before_validation do
|
||||
if self.attributes["posted_at"].nil?
|
||||
self.attributes["posted_at"] = postable&.posted_at
|
||||
@@ -10,119 +11,147 @@ class IndexedPost < ReduxApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
def artist_name
|
||||
case postable_type
|
||||
when "Domain::Fa::Post"
|
||||
postable&.creator&.name
|
||||
when "Domain::E621::Post"
|
||||
array = postable&.tags_array
|
||||
return unless array
|
||||
array.is_a?(Hash) ? array["artist"].first : nil
|
||||
when "Domain::Inkbunny::Post"
|
||||
postable&.creator&.name
|
||||
else
|
||||
raise("Unsupported postable type: #{postable_type}")
|
||||
end
|
||||
# fake a polymorphic association because tapioca doesn't support it
|
||||
# belongs_to :postable, polymorphic: true, inverse_of: :indexed_post
|
||||
# has_one :file, through: :postable
|
||||
sig do
|
||||
params(
|
||||
postable:
|
||||
T.any(Domain::Fa::Post, Domain::E621::Post, Domain::Inkbunny::Post),
|
||||
).returns(
|
||||
T.any(Domain::Fa::Post, Domain::E621::Post, Domain::Inkbunny::Post),
|
||||
)
|
||||
end
|
||||
def postable=(postable)
|
||||
self.postable_id = postable.id
|
||||
self.postable_type = postable.class.name
|
||||
|
||||
T.must(
|
||||
@postable =
|
||||
T.let(
|
||||
postable,
|
||||
T.nilable(
|
||||
T.any(Domain::Fa::Post, Domain::E621::Post, Domain::Inkbunny::Post),
|
||||
),
|
||||
),
|
||||
)
|
||||
end
|
||||
|
||||
def artist_path
|
||||
case postable_type
|
||||
when "Domain::Fa::Post"
|
||||
if postable&.creator
|
||||
Rails.application.routes.url_helpers.domain_fa_user_path(
|
||||
postable&.creator,
|
||||
)
|
||||
end
|
||||
when "Domain::E621::Post"
|
||||
return nil
|
||||
when "Domain::Inkbunny::Post"
|
||||
if postable&.creator
|
||||
Rails.application.routes.url_helpers.domain_inkbunny_user_path(
|
||||
postable&.creator,
|
||||
)
|
||||
end
|
||||
else
|
||||
raise("Unsupported postable type: #{postable_type}")
|
||||
end
|
||||
sig do
|
||||
returns(
|
||||
T.nilable(
|
||||
T.any(Domain::Fa::Post, Domain::E621::Post, Domain::Inkbunny::Post),
|
||||
),
|
||||
)
|
||||
end
|
||||
|
||||
def title
|
||||
case postable_type
|
||||
when "Domain::Fa::Post"
|
||||
postable&.title || "FA Post #{postable&.fa_id}"
|
||||
when "Domain::E621::Post"
|
||||
"E621 Post #{postable&.e621_id}"
|
||||
when "Domain::Inkbunny::Post"
|
||||
postable&.title || "IB Post #{postable&.ib_post_id}"
|
||||
else
|
||||
raise("Unsupported postable type: #{postable_type}")
|
||||
end
|
||||
end
|
||||
|
||||
def posted_at
|
||||
super ||
|
||||
def postable
|
||||
@postable ||=
|
||||
case postable_type
|
||||
when "Domain::Fa::Post"
|
||||
postable&.posted_at
|
||||
Domain::Fa::Post.find(postable_id)
|
||||
when "Domain::E621::Post"
|
||||
postable&.posted_at
|
||||
Domain::E621::Post.find(postable_id)
|
||||
when "Domain::Inkbunny::Post"
|
||||
postable&.posted_at
|
||||
else
|
||||
raise("Unsupported postable type: #{postable_type}")
|
||||
Domain::Inkbunny::Post.find(postable_id)
|
||||
end
|
||||
end
|
||||
|
||||
sig { returns(T.nilable(String)) }
|
||||
def artist_name
|
||||
case post = postable
|
||||
when Domain::Fa::Post
|
||||
post.creator&.name
|
||||
when Domain::E621::Post
|
||||
array = post.tags_array
|
||||
return nil unless array
|
||||
array.is_a?(Hash) ? array["artist"].first : nil
|
||||
when Domain::Inkbunny::Post
|
||||
post.creator&.name
|
||||
end
|
||||
end
|
||||
|
||||
sig { returns(T.nilable(String)) }
|
||||
def artist_path
|
||||
case post = postable
|
||||
when Domain::Fa::Post
|
||||
if post.creator
|
||||
Rails.application.routes.url_helpers.domain_fa_user_path(post.creator)
|
||||
end
|
||||
when Domain::E621::Post
|
||||
nil
|
||||
when Domain::Inkbunny::Post
|
||||
if post.creator
|
||||
Rails.application.routes.url_helpers.domain_inkbunny_user_path(
|
||||
post.creator,
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
sig { returns(T.nilable(String)) }
|
||||
def title
|
||||
case post = postable
|
||||
when Domain::Fa::Post
|
||||
post.title || "FA ##{post.fa_id}"
|
||||
when Domain::E621::Post
|
||||
"E621 ##{post.e621_id}"
|
||||
when Domain::Inkbunny::Post
|
||||
post.title || "IB ##{post.ib_post_id}"
|
||||
end
|
||||
end
|
||||
|
||||
sig { returns(T.nilable(ActiveSupport::TimeWithZone)) }
|
||||
def posted_at
|
||||
super || postable&.posted_at
|
||||
end
|
||||
|
||||
sig { returns(T.nilable(String)) }
|
||||
def file_sha256
|
||||
case postable_type
|
||||
when "Domain::Fa::Post", "Domain::E621::Post"
|
||||
postable&.file&.response_sha256
|
||||
when "Domain::Inkbunny::Post"
|
||||
postable&.files&.first&.blob_entry_sha256
|
||||
else
|
||||
raise("Unsupported postable type: #{postable_type}")
|
||||
case post = postable
|
||||
when Domain::Fa::Post, Domain::E621::Post
|
||||
post.file&.response_sha256
|
||||
when Domain::Inkbunny::Post
|
||||
post.files.first&.blob_entry_sha256
|
||||
end
|
||||
end
|
||||
|
||||
sig { returns(T.nilable(String)) }
|
||||
def file_blob_entry
|
||||
case postable_type
|
||||
when "Domain::Fa::Post"
|
||||
postable&.file&.response
|
||||
when "Domain::E621::Post"
|
||||
postable&.file&.response
|
||||
else
|
||||
raise("Unsupported postable type: #{postable_type}")
|
||||
case post = postable
|
||||
when Domain::Fa::Post, Domain::E621::Post
|
||||
post.file&.response&.to_s
|
||||
when Domain::Inkbunny::Post
|
||||
post.files.first&.blob_entry&.to_s
|
||||
end
|
||||
end
|
||||
|
||||
sig { returns(T.nilable(String)) }
|
||||
def external_link_title
|
||||
case postable_type
|
||||
when "Domain::Fa::Post"
|
||||
fa_id = postable&.fa_id
|
||||
case post = postable
|
||||
when Domain::Fa::Post
|
||||
fa_id = post.fa_id
|
||||
"FA ##{fa_id}" if fa_id.present?
|
||||
when "Domain::E621::Post"
|
||||
e621_id = postable&.e621_id
|
||||
when Domain::E621::Post
|
||||
e621_id = post.e621_id
|
||||
"E621 ##{e621_id}" if e621_id.present?
|
||||
when "Domain::Inkbunny::Post"
|
||||
"IB ##{postable&.ib_post_id}" if postable&.ib_post_id.present?
|
||||
else
|
||||
raise("Unsupported postable type: #{postable_type}")
|
||||
when Domain::Inkbunny::Post
|
||||
ib_post_id = post.ib_post_id
|
||||
"IB ##{ib_post_id}" if ib_post_id.present?
|
||||
end
|
||||
end
|
||||
|
||||
sig { returns(T.nilable(String)) }
|
||||
def external_link_url
|
||||
case postable_type
|
||||
when "Domain::Fa::Post"
|
||||
fa_id = postable&.fa_id
|
||||
case post = postable
|
||||
when Domain::Fa::Post
|
||||
fa_id = post.fa_id
|
||||
"https://www.furaffinity.net/view/#{fa_id}" if fa_id.present?
|
||||
when "Domain::E621::Post"
|
||||
e621_id = postable&.e621_id
|
||||
when Domain::E621::Post
|
||||
e621_id = post.e621_id
|
||||
"https://e621.net/posts/#{e621_id}" if e621_id.present?
|
||||
when "Domain::Inkbunny::Post"
|
||||
ib_post_id = postable&.ib_post_id
|
||||
when Domain::Inkbunny::Post
|
||||
ib_post_id = post.ib_post_id
|
||||
"https://inkbunny.net/s/#{ib_post_id}" if ib_post_id.present?
|
||||
else
|
||||
raise("Unsupported postable type: #{postable_type}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
class LiteTrail::AbstractVersion < ReduxApplicationRecord
|
||||
self.abstract_class = true
|
||||
before_update { raise ActiveRecord::ReadOnlyRecord }
|
||||
|
||||
def reify
|
||||
versions_arr = item.versions
|
||||
self_idx = versions_arr.find_index(self)
|
||||
if self_idx == nil
|
||||
raise(
|
||||
"item.versions (#{item.item_type}/#{item.item_id}) does not contain self: #{self.id}"
|
||||
)
|
||||
end
|
||||
|
||||
model = self.item.dup
|
||||
|
||||
# unapply versions in reverse order
|
||||
(versions_arr.length - 1)
|
||||
.downto(self_idx)
|
||||
.each do |idx|
|
||||
version = versions_arr[idx]
|
||||
version._unapply(model)
|
||||
end
|
||||
|
||||
model
|
||||
end
|
||||
|
||||
def _unapply(model)
|
||||
mapper_config = item.class.lite_trail_options[:map_attribute] || {}
|
||||
|
||||
if self.event == "create"
|
||||
raise("'create' cannot be undone")
|
||||
elsif self.event == "update"
|
||||
self.diff.each do |attr_name, change|
|
||||
attr_before, attr_after = change
|
||||
|
||||
attr_name_sym = attr_name.to_sym
|
||||
if mapper_config[attr_name_sym]
|
||||
attr_before =
|
||||
mapper_config[attr_name_sym].map_from(attr_before) if attr_before
|
||||
attr_after =
|
||||
mapper_config[attr_name_sym].map_from(attr_after) if attr_after
|
||||
end
|
||||
|
||||
# sanity check - but ignore updated_at due to rounding issues
|
||||
if attr_name_sym != :updated_at
|
||||
if model.send(attr_name.to_sym) != attr_after
|
||||
raise(
|
||||
"expected #{attr_name} to be #{attr_after}, was #{item_attributes[attr_name]}"
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
model.send(:"#{attr_name}=", attr_before)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,4 +0,0 @@
|
||||
class LiteTrail::Version < LiteTrail::AbstractVersion
|
||||
self.table_name = "versions"
|
||||
belongs_to :item, polymorphic: true
|
||||
end
|
||||
@@ -1,5 +1,6 @@
|
||||
require_relative "boot"
|
||||
require "rails/all"
|
||||
require "sorbet-runtime"
|
||||
|
||||
module ReduxScraper
|
||||
class Application < Rails::Application
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
require_relative Rails.root.join("app/lib/lite_trail")
|
||||
require_relative Rails.root.join("app/lib/lite_trail/migration_extensions")
|
||||
ActiveRecord::Migration.send(:include, ::LiteTrail::MigrationExtensions)
|
||||
|
||||
require_relative Rails.root.join("app/models/redux_application_record")
|
||||
require_relative Rails.root.join(
|
||||
"app/lib/lite_trail/active_record_class_methods"
|
||||
)
|
||||
ReduxApplicationRecord.send(:extend, ::LiteTrail::ActiveRecordClassMethods)
|
||||
5
db/migrate/20250101014121_remove_lite_trail_versions.rb
Normal file
5
db/migrate/20250101014121_remove_lite_trail_versions.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class RemoveLiteTrailVersions < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
drop_table :versions
|
||||
end
|
||||
end
|
||||
12
db/schema.rb
generated
12
db/schema.rb
generated
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.2].define(version: 2024_12_31_215756) do
|
||||
ActiveRecord::Schema[7.2].define(version: 2025_01_01_014121) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_prewarm"
|
||||
enable_extension "pg_stat_statements"
|
||||
@@ -1808,16 +1808,6 @@ ActiveRecord::Schema[7.2].define(version: 2024_12_31_215756) do
|
||||
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
|
||||
end
|
||||
|
||||
create_table "versions", force: :cascade do |t|
|
||||
t.string "item_type", null: false
|
||||
t.bigint "item_id", null: false
|
||||
t.integer "schema_version", null: false
|
||||
t.string "event", null: false
|
||||
t.jsonb "diff"
|
||||
t.datetime "created_at"
|
||||
t.index ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
|
||||
end
|
||||
|
||||
add_foreign_key "domain_e621_post_versions", "domain_e621_posts", column: "item_id"
|
||||
add_foreign_key "domain_e621_taggings", "domain_e621_posts", column: "post_id"
|
||||
add_foreign_key "domain_e621_taggings", "domain_e621_tags", column: "tag_id"
|
||||
|
||||
5
justfile
5
justfile
@@ -17,4 +17,7 @@ psql-dump-domain-fa-favs:
|
||||
@psql -P pager=off -c 'select user_id, post_id, 1 from domain_fa_favs limit 10000000;' -d redux_prod -h 10.166.33.171 -U scraper_redux -t -A -F ' '
|
||||
|
||||
test:
|
||||
bin/rake parallel:spec
|
||||
bundle exec srb tc && bin/rake parallel:spec
|
||||
|
||||
tc *args:
|
||||
bundle exec srb tc {{args}}
|
||||
|
||||
1
sorbet/rbi/dsl/.gitattributes
vendored
Normal file
1
sorbet/rbi/dsl/.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
||||
**/*.rbi linguist-generated=true
|
||||
31
sorbet/rbi/dsl/abstract_controller/caching.rbi
generated
Normal file
31
sorbet/rbi/dsl/abstract_controller/caching.rbi
generated
Normal file
@@ -0,0 +1,31 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `AbstractController::Caching`.
|
||||
# Please instead update this file by running `bin/tapioca dsl AbstractController::Caching`.
|
||||
|
||||
|
||||
module AbstractController::Caching
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::AbstractController::Caching::Fragments::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _view_cache_dependencies; end
|
||||
def _view_cache_dependencies=(value); end
|
||||
def _view_cache_dependencies?; end
|
||||
def fragment_cache_keys; end
|
||||
def fragment_cache_keys=(value); end
|
||||
def fragment_cache_keys?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def _view_cache_dependencies; end
|
||||
def _view_cache_dependencies=(value); end
|
||||
def _view_cache_dependencies?; end
|
||||
def fragment_cache_keys; end
|
||||
def fragment_cache_keys=(value); end
|
||||
def fragment_cache_keys?; end
|
||||
end
|
||||
end
|
||||
24
sorbet/rbi/dsl/abstract_controller/caching/fragments.rbi
generated
Normal file
24
sorbet/rbi/dsl/abstract_controller/caching/fragments.rbi
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `AbstractController::Caching::Fragments`.
|
||||
# Please instead update this file by running `bin/tapioca dsl AbstractController::Caching::Fragments`.
|
||||
|
||||
|
||||
module AbstractController::Caching::Fragments
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def fragment_cache_keys; end
|
||||
def fragment_cache_keys=(value); end
|
||||
def fragment_cache_keys?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def fragment_cache_keys; end
|
||||
def fragment_cache_keys=(value); end
|
||||
def fragment_cache_keys?; end
|
||||
end
|
||||
end
|
||||
24
sorbet/rbi/dsl/abstract_controller/callbacks.rbi
generated
Normal file
24
sorbet/rbi/dsl/abstract_controller/callbacks.rbi
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `AbstractController::Callbacks`.
|
||||
# Please instead update this file by running `bin/tapioca dsl AbstractController::Callbacks`.
|
||||
|
||||
|
||||
module AbstractController::Callbacks
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def __callbacks; end
|
||||
def __callbacks=(value); end
|
||||
def __callbacks?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def __callbacks; end
|
||||
def __callbacks?; end
|
||||
end
|
||||
end
|
||||
24
sorbet/rbi/dsl/abstract_controller/helpers.rbi
generated
Normal file
24
sorbet/rbi/dsl/abstract_controller/helpers.rbi
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `AbstractController::Helpers`.
|
||||
# Please instead update this file by running `bin/tapioca dsl AbstractController::Helpers`.
|
||||
|
||||
|
||||
module AbstractController::Helpers
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _helper_methods; end
|
||||
def _helper_methods=(value); end
|
||||
def _helper_methods?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def _helper_methods; end
|
||||
def _helper_methods=(value); end
|
||||
def _helper_methods?; end
|
||||
end
|
||||
end
|
||||
10
sorbet/rbi/dsl/abstract_controller/rendering.rbi
generated
Normal file
10
sorbet/rbi/dsl/abstract_controller/rendering.rbi
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `AbstractController::Rendering`.
|
||||
# Please instead update this file by running `bin/tapioca dsl AbstractController::Rendering`.
|
||||
|
||||
|
||||
module AbstractController::Rendering
|
||||
mixes_in_class_methods ::ActionView::ViewPaths::ClassMethods
|
||||
end
|
||||
24
sorbet/rbi/dsl/abstract_controller/url_for.rbi
generated
Normal file
24
sorbet/rbi/dsl/abstract_controller/url_for.rbi
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `AbstractController::UrlFor`.
|
||||
# Please instead update this file by running `bin/tapioca dsl AbstractController::UrlFor`.
|
||||
|
||||
|
||||
module AbstractController::UrlFor
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def default_url_options; end
|
||||
def default_url_options=(value); end
|
||||
def default_url_options?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def default_url_options; end
|
||||
def default_url_options=(value); end
|
||||
def default_url_options?; end
|
||||
end
|
||||
end
|
||||
24
sorbet/rbi/dsl/action_cable/channel/callbacks.rbi
generated
Normal file
24
sorbet/rbi/dsl/action_cable/channel/callbacks.rbi
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionCable::Channel::Callbacks`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionCable::Channel::Callbacks`.
|
||||
|
||||
|
||||
module ActionCable::Channel::Callbacks
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def __callbacks; end
|
||||
def __callbacks=(value); end
|
||||
def __callbacks?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def __callbacks; end
|
||||
def __callbacks?; end
|
||||
end
|
||||
end
|
||||
22
sorbet/rbi/dsl/action_cable/channel/periodic_timers.rbi
generated
Normal file
22
sorbet/rbi/dsl/action_cable/channel/periodic_timers.rbi
generated
Normal file
@@ -0,0 +1,22 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionCable::Channel::PeriodicTimers`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionCable::Channel::PeriodicTimers`.
|
||||
|
||||
|
||||
module ActionCable::Channel::PeriodicTimers
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def periodic_timers; end
|
||||
def periodic_timers=(value); end
|
||||
def periodic_timers?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def periodic_timers=(value); end
|
||||
end
|
||||
end
|
||||
24
sorbet/rbi/dsl/action_cable/connection/callbacks.rbi
generated
Normal file
24
sorbet/rbi/dsl/action_cable/connection/callbacks.rbi
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionCable::Connection::Callbacks`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionCable::Connection::Callbacks`.
|
||||
|
||||
|
||||
module ActionCable::Connection::Callbacks
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def __callbacks; end
|
||||
def __callbacks=(value); end
|
||||
def __callbacks?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def __callbacks; end
|
||||
def __callbacks?; end
|
||||
end
|
||||
end
|
||||
24
sorbet/rbi/dsl/action_cable/connection/identification.rbi
generated
Normal file
24
sorbet/rbi/dsl/action_cable/connection/identification.rbi
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionCable::Connection::Identification`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionCable::Connection::Identification`.
|
||||
|
||||
|
||||
module ActionCable::Connection::Identification
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def identifiers; end
|
||||
def identifiers=(value); end
|
||||
def identifiers?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def identifiers; end
|
||||
def identifiers=(value); end
|
||||
def identifiers?; end
|
||||
end
|
||||
end
|
||||
11
sorbet/rbi/dsl/action_controller/api_rendering.rbi
generated
Normal file
11
sorbet/rbi/dsl/action_controller/api_rendering.rbi
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::ApiRendering`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::ApiRendering`.
|
||||
|
||||
|
||||
module ActionController::ApiRendering
|
||||
mixes_in_class_methods ::ActionView::ViewPaths::ClassMethods
|
||||
mixes_in_class_methods ::ActionView::Rendering::ClassMethods
|
||||
end
|
||||
30
sorbet/rbi/dsl/action_controller/caching.rbi
generated
Normal file
30
sorbet/rbi/dsl/action_controller/caching.rbi
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::Caching`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::Caching`.
|
||||
|
||||
|
||||
module ActionController::Caching
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _view_cache_dependencies; end
|
||||
def _view_cache_dependencies=(value); end
|
||||
def _view_cache_dependencies?; end
|
||||
def fragment_cache_keys; end
|
||||
def fragment_cache_keys=(value); end
|
||||
def fragment_cache_keys?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def _view_cache_dependencies; end
|
||||
def _view_cache_dependencies=(value); end
|
||||
def _view_cache_dependencies?; end
|
||||
def fragment_cache_keys; end
|
||||
def fragment_cache_keys=(value); end
|
||||
def fragment_cache_keys?; end
|
||||
end
|
||||
end
|
||||
24
sorbet/rbi/dsl/action_controller/conditional_get.rbi
generated
Normal file
24
sorbet/rbi/dsl/action_controller/conditional_get.rbi
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::ConditionalGet`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::ConditionalGet`.
|
||||
|
||||
|
||||
module ActionController::ConditionalGet
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def etaggers; end
|
||||
def etaggers=(value); end
|
||||
def etaggers?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def etaggers; end
|
||||
def etaggers=(value); end
|
||||
def etaggers?; end
|
||||
end
|
||||
end
|
||||
32
sorbet/rbi/dsl/action_controller/content_security_policy.rbi
generated
Normal file
32
sorbet/rbi/dsl/action_controller/content_security_policy.rbi
generated
Normal file
@@ -0,0 +1,32 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::ContentSecurityPolicy`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::ContentSecurityPolicy`.
|
||||
|
||||
|
||||
module ActionController::ContentSecurityPolicy
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::AbstractController::Helpers::ClassMethods
|
||||
mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods
|
||||
mixes_in_class_methods ::AbstractController::Callbacks::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def __callbacks; end
|
||||
def __callbacks=(value); end
|
||||
def __callbacks?; end
|
||||
def _helper_methods; end
|
||||
def _helper_methods=(value); end
|
||||
def _helper_methods?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def __callbacks; end
|
||||
def __callbacks?; end
|
||||
def _helper_methods; end
|
||||
def _helper_methods=(value); end
|
||||
def _helper_methods?; end
|
||||
end
|
||||
end
|
||||
10
sorbet/rbi/dsl/action_controller/data_streaming.rbi
generated
Normal file
10
sorbet/rbi/dsl/action_controller/data_streaming.rbi
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::DataStreaming`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::DataStreaming`.
|
||||
|
||||
|
||||
module ActionController::DataStreaming
|
||||
mixes_in_class_methods ::ActionController::Rendering::ClassMethods
|
||||
end
|
||||
25
sorbet/rbi/dsl/action_controller/etag_with_flash.rbi
generated
Normal file
25
sorbet/rbi/dsl/action_controller/etag_with_flash.rbi
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::EtagWithFlash`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::EtagWithFlash`.
|
||||
|
||||
|
||||
module ActionController::EtagWithFlash
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActionController::ConditionalGet::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def etaggers; end
|
||||
def etaggers=(value); end
|
||||
def etaggers?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def etaggers; end
|
||||
def etaggers=(value); end
|
||||
def etaggers?; end
|
||||
end
|
||||
end
|
||||
31
sorbet/rbi/dsl/action_controller/etag_with_template_digest.rbi
generated
Normal file
31
sorbet/rbi/dsl/action_controller/etag_with_template_digest.rbi
generated
Normal file
@@ -0,0 +1,31 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::EtagWithTemplateDigest`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::EtagWithTemplateDigest`.
|
||||
|
||||
|
||||
module ActionController::EtagWithTemplateDigest
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActionController::ConditionalGet::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def etag_with_template_digest; end
|
||||
def etag_with_template_digest=(value); end
|
||||
def etag_with_template_digest?; end
|
||||
def etaggers; end
|
||||
def etaggers=(value); end
|
||||
def etaggers?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def etag_with_template_digest; end
|
||||
def etag_with_template_digest=(value); end
|
||||
def etag_with_template_digest?; end
|
||||
def etaggers; end
|
||||
def etaggers=(value); end
|
||||
def etaggers?; end
|
||||
end
|
||||
end
|
||||
20
sorbet/rbi/dsl/action_controller/flash.rbi
generated
Normal file
20
sorbet/rbi/dsl/action_controller/flash.rbi
generated
Normal file
@@ -0,0 +1,20 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::Flash`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::Flash`.
|
||||
|
||||
|
||||
module ActionController::Flash
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _flash_types; end
|
||||
def _flash_types=(value); end
|
||||
def _flash_types?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods; end
|
||||
end
|
||||
20
sorbet/rbi/dsl/action_controller/form_builder.rbi
generated
Normal file
20
sorbet/rbi/dsl/action_controller/form_builder.rbi
generated
Normal file
@@ -0,0 +1,20 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::FormBuilder`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::FormBuilder`.
|
||||
|
||||
|
||||
module ActionController::FormBuilder
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _default_form_builder; end
|
||||
def _default_form_builder=(value); end
|
||||
def _default_form_builder?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods; end
|
||||
end
|
||||
37
sorbet/rbi/dsl/action_controller/helpers.rbi
generated
Normal file
37
sorbet/rbi/dsl/action_controller/helpers.rbi
generated
Normal file
@@ -0,0 +1,37 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::Helpers`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::Helpers`.
|
||||
|
||||
|
||||
module ActionController::Helpers
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::AbstractController::Helpers::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _helper_methods; end
|
||||
def _helper_methods=(value); end
|
||||
def _helper_methods?; end
|
||||
def helpers_path; end
|
||||
def helpers_path=(value); end
|
||||
def helpers_path?; end
|
||||
def include_all_helpers; end
|
||||
def include_all_helpers=(value); end
|
||||
def include_all_helpers?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def _helper_methods; end
|
||||
def _helper_methods=(value); end
|
||||
def _helper_methods?; end
|
||||
def helpers_path; end
|
||||
def helpers_path=(value); end
|
||||
def helpers_path?; end
|
||||
def include_all_helpers; end
|
||||
def include_all_helpers=(value); end
|
||||
def include_all_helpers?; end
|
||||
end
|
||||
end
|
||||
24
sorbet/rbi/dsl/action_controller/params_wrapper.rbi
generated
Normal file
24
sorbet/rbi/dsl/action_controller/params_wrapper.rbi
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::ParamsWrapper`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::ParamsWrapper`.
|
||||
|
||||
|
||||
module ActionController::ParamsWrapper
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _wrapper_options; end
|
||||
def _wrapper_options=(value); end
|
||||
def _wrapper_options?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def _wrapper_options; end
|
||||
def _wrapper_options=(value); end
|
||||
def _wrapper_options?; end
|
||||
end
|
||||
end
|
||||
25
sorbet/rbi/dsl/action_controller/redirecting.rbi
generated
Normal file
25
sorbet/rbi/dsl/action_controller/redirecting.rbi
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::Redirecting`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::Redirecting`.
|
||||
|
||||
|
||||
module ActionController::Redirecting
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::AbstractController::UrlFor::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def default_url_options; end
|
||||
def default_url_options=(value); end
|
||||
def default_url_options?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def default_url_options; end
|
||||
def default_url_options=(value); end
|
||||
def default_url_options?; end
|
||||
end
|
||||
end
|
||||
24
sorbet/rbi/dsl/action_controller/renderers.rbi
generated
Normal file
24
sorbet/rbi/dsl/action_controller/renderers.rbi
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::Renderers`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::Renderers`.
|
||||
|
||||
|
||||
module ActionController::Renderers
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _renderers; end
|
||||
def _renderers=(value); end
|
||||
def _renderers?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def _renderers; end
|
||||
def _renderers=(value); end
|
||||
def _renderers?; end
|
||||
end
|
||||
end
|
||||
25
sorbet/rbi/dsl/action_controller/renderers/all.rbi
generated
Normal file
25
sorbet/rbi/dsl/action_controller/renderers/all.rbi
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::Renderers::All`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::Renderers::All`.
|
||||
|
||||
|
||||
module ActionController::Renderers::All
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActionController::Renderers::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _renderers; end
|
||||
def _renderers=(value); end
|
||||
def _renderers?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def _renderers; end
|
||||
def _renderers=(value); end
|
||||
def _renderers?; end
|
||||
end
|
||||
end
|
||||
32
sorbet/rbi/dsl/action_controller/request_forgery_protection.rbi
generated
Normal file
32
sorbet/rbi/dsl/action_controller/request_forgery_protection.rbi
generated
Normal file
@@ -0,0 +1,32 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::RequestForgeryProtection`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::RequestForgeryProtection`.
|
||||
|
||||
|
||||
module ActionController::RequestForgeryProtection
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::AbstractController::Helpers::ClassMethods
|
||||
mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods
|
||||
mixes_in_class_methods ::AbstractController::Callbacks::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def __callbacks; end
|
||||
def __callbacks=(value); end
|
||||
def __callbacks?; end
|
||||
def _helper_methods; end
|
||||
def _helper_methods=(value); end
|
||||
def _helper_methods?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def __callbacks; end
|
||||
def __callbacks?; end
|
||||
def _helper_methods; end
|
||||
def _helper_methods=(value); end
|
||||
def _helper_methods?; end
|
||||
end
|
||||
end
|
||||
25
sorbet/rbi/dsl/action_controller/rescue.rbi
generated
Normal file
25
sorbet/rbi/dsl/action_controller/rescue.rbi
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::Rescue`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::Rescue`.
|
||||
|
||||
|
||||
module ActionController::Rescue
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActiveSupport::Rescuable::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def rescue_handlers; end
|
||||
def rescue_handlers=(value); end
|
||||
def rescue_handlers?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def rescue_handlers; end
|
||||
def rescue_handlers=(value); end
|
||||
def rescue_handlers?; end
|
||||
end
|
||||
end
|
||||
30
sorbet/rbi/dsl/action_controller/respond_with.rbi
generated
Normal file
30
sorbet/rbi/dsl/action_controller/respond_with.rbi
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::RespondWith`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::RespondWith`.
|
||||
|
||||
|
||||
module ActionController::RespondWith
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def mimes_for_respond_to; end
|
||||
def mimes_for_respond_to=(value); end
|
||||
def mimes_for_respond_to?; end
|
||||
def responder; end
|
||||
def responder=(value); end
|
||||
def responder?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def mimes_for_respond_to; end
|
||||
def mimes_for_respond_to=(value); end
|
||||
def mimes_for_respond_to?; end
|
||||
def responder; end
|
||||
def responder=(value); end
|
||||
def responder?; end
|
||||
end
|
||||
end
|
||||
25
sorbet/rbi/dsl/action_controller/test_case/behavior.rbi
generated
Normal file
25
sorbet/rbi/dsl/action_controller/test_case/behavior.rbi
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::TestCase::Behavior`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::TestCase::Behavior`.
|
||||
|
||||
|
||||
module ActionController::TestCase::Behavior
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActiveSupport::Testing::ConstantLookup::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _controller_class; end
|
||||
def _controller_class=(value); end
|
||||
def _controller_class?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def _controller_class; end
|
||||
def _controller_class=(value); end
|
||||
def _controller_class?; end
|
||||
end
|
||||
end
|
||||
25
sorbet/rbi/dsl/action_controller/url_for.rbi
generated
Normal file
25
sorbet/rbi/dsl/action_controller/url_for.rbi
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionController::UrlFor`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionController::UrlFor`.
|
||||
|
||||
|
||||
module ActionController::UrlFor
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::AbstractController::UrlFor::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def default_url_options; end
|
||||
def default_url_options=(value); end
|
||||
def default_url_options?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def default_url_options; end
|
||||
def default_url_options=(value); end
|
||||
def default_url_options?; end
|
||||
end
|
||||
end
|
||||
10
sorbet/rbi/dsl/action_dispatch/assertions.rbi
generated
Normal file
10
sorbet/rbi/dsl/action_dispatch/assertions.rbi
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionDispatch::Assertions`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionDispatch::Assertions`.
|
||||
|
||||
|
||||
module ActionDispatch::Assertions
|
||||
mixes_in_class_methods ::ActionDispatch::Assertions::RoutingAssertions::ClassMethods
|
||||
end
|
||||
11
sorbet/rbi/dsl/action_dispatch/integration_test.rbi
generated
Normal file
11
sorbet/rbi/dsl/action_dispatch/integration_test.rbi
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionDispatch::IntegrationTest`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionDispatch::IntegrationTest`.
|
||||
|
||||
|
||||
class ActionDispatch::IntegrationTest
|
||||
include GeneratedUrlHelpersModule
|
||||
include GeneratedPathHelpersModule
|
||||
end
|
||||
24
sorbet/rbi/dsl/action_dispatch/routing/route_set/mounted_helpers.rbi
generated
Normal file
24
sorbet/rbi/dsl/action_dispatch/routing/route_set/mounted_helpers.rbi
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionDispatch::Routing::RouteSet::MountedHelpers`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionDispatch::Routing::RouteSet::MountedHelpers`.
|
||||
|
||||
|
||||
module ActionDispatch::Routing::RouteSet::MountedHelpers
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def default_url_options; end
|
||||
def default_url_options=(value); end
|
||||
def default_url_options?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def default_url_options; end
|
||||
def default_url_options=(value); end
|
||||
def default_url_options?; end
|
||||
end
|
||||
end
|
||||
24
sorbet/rbi/dsl/action_dispatch/routing/url_for.rbi
generated
Normal file
24
sorbet/rbi/dsl/action_dispatch/routing/url_for.rbi
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionDispatch::Routing::UrlFor`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionDispatch::Routing::UrlFor`.
|
||||
|
||||
|
||||
module ActionDispatch::Routing::UrlFor
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def default_url_options; end
|
||||
def default_url_options=(value); end
|
||||
def default_url_options?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def default_url_options; end
|
||||
def default_url_options=(value); end
|
||||
def default_url_options?; end
|
||||
end
|
||||
end
|
||||
1050
sorbet/rbi/dsl/action_mailbox/inbound_email.rbi
generated
Normal file
1050
sorbet/rbi/dsl/action_mailbox/inbound_email.rbi
generated
Normal file
File diff suppressed because it is too large
Load Diff
21
sorbet/rbi/dsl/action_mailbox/incineration_job.rbi
generated
Normal file
21
sorbet/rbi/dsl/action_mailbox/incineration_job.rbi
generated
Normal file
@@ -0,0 +1,21 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionMailbox::IncinerationJob`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionMailbox::IncinerationJob`.
|
||||
|
||||
|
||||
class ActionMailbox::IncinerationJob
|
||||
class << self
|
||||
sig do
|
||||
params(
|
||||
inbound_email: T.untyped,
|
||||
block: T.nilable(T.proc.params(job: ActionMailbox::IncinerationJob).void)
|
||||
).returns(T.any(ActionMailbox::IncinerationJob, FalseClass))
|
||||
end
|
||||
def perform_later(inbound_email, &block); end
|
||||
|
||||
sig { params(inbound_email: T.untyped).returns(T.untyped) }
|
||||
def perform_now(inbound_email); end
|
||||
end
|
||||
end
|
||||
21
sorbet/rbi/dsl/action_mailbox/routing_job.rbi
generated
Normal file
21
sorbet/rbi/dsl/action_mailbox/routing_job.rbi
generated
Normal file
@@ -0,0 +1,21 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionMailbox::RoutingJob`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionMailbox::RoutingJob`.
|
||||
|
||||
|
||||
class ActionMailbox::RoutingJob
|
||||
class << self
|
||||
sig do
|
||||
params(
|
||||
inbound_email: T.untyped,
|
||||
block: T.nilable(T.proc.params(job: ActionMailbox::RoutingJob).void)
|
||||
).returns(T.any(ActionMailbox::RoutingJob, FalseClass))
|
||||
end
|
||||
def perform_later(inbound_email, &block); end
|
||||
|
||||
sig { params(inbound_email: T.untyped).returns(T.untyped) }
|
||||
def perform_now(inbound_email); end
|
||||
end
|
||||
end
|
||||
23
sorbet/rbi/dsl/action_mailer/callbacks.rbi
generated
Normal file
23
sorbet/rbi/dsl/action_mailer/callbacks.rbi
generated
Normal file
@@ -0,0 +1,23 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionMailer::Callbacks`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionMailer::Callbacks`.
|
||||
|
||||
|
||||
module ActionMailer::Callbacks
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def __callbacks; end
|
||||
def __callbacks=(value); end
|
||||
def __callbacks?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def __callbacks; end
|
||||
def __callbacks?; end
|
||||
end
|
||||
end
|
||||
54
sorbet/rbi/dsl/action_mailer/delivery_methods.rbi
generated
Normal file
54
sorbet/rbi/dsl/action_mailer/delivery_methods.rbi
generated
Normal file
@@ -0,0 +1,54 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionMailer::DeliveryMethods`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionMailer::DeliveryMethods`.
|
||||
|
||||
|
||||
module ActionMailer::DeliveryMethods
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def delivery_method; end
|
||||
def delivery_method=(value); end
|
||||
def delivery_method?; end
|
||||
def delivery_methods; end
|
||||
def delivery_methods=(value); end
|
||||
def delivery_methods?; end
|
||||
def file_settings; end
|
||||
def file_settings=(value); end
|
||||
def file_settings?; end
|
||||
def sendmail_settings; end
|
||||
def sendmail_settings=(value); end
|
||||
def sendmail_settings?; end
|
||||
def smtp_settings; end
|
||||
def smtp_settings=(value); end
|
||||
def smtp_settings?; end
|
||||
def test_settings; end
|
||||
def test_settings=(value); end
|
||||
def test_settings?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def delivery_method; end
|
||||
def delivery_method=(value); end
|
||||
def delivery_method?; end
|
||||
def delivery_methods; end
|
||||
def delivery_methods=(value); end
|
||||
def delivery_methods?; end
|
||||
def file_settings; end
|
||||
def file_settings=(value); end
|
||||
def file_settings?; end
|
||||
def sendmail_settings; end
|
||||
def sendmail_settings=(value); end
|
||||
def sendmail_settings?; end
|
||||
def smtp_settings; end
|
||||
def smtp_settings=(value); end
|
||||
def smtp_settings?; end
|
||||
def test_settings; end
|
||||
def test_settings=(value); end
|
||||
def test_settings?; end
|
||||
end
|
||||
end
|
||||
20
sorbet/rbi/dsl/action_mailer/form_builder.rbi
generated
Normal file
20
sorbet/rbi/dsl/action_mailer/form_builder.rbi
generated
Normal file
@@ -0,0 +1,20 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionMailer::FormBuilder`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionMailer::FormBuilder`.
|
||||
|
||||
|
||||
module ActionMailer::FormBuilder
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _default_form_builder; end
|
||||
def _default_form_builder=(value); end
|
||||
def _default_form_builder?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods; end
|
||||
end
|
||||
35
sorbet/rbi/dsl/action_mailer/mail_delivery_job.rbi
generated
Normal file
35
sorbet/rbi/dsl/action_mailer/mail_delivery_job.rbi
generated
Normal file
@@ -0,0 +1,35 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionMailer::MailDeliveryJob`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionMailer::MailDeliveryJob`.
|
||||
|
||||
|
||||
class ActionMailer::MailDeliveryJob
|
||||
class << self
|
||||
sig do
|
||||
params(
|
||||
mailer: T.untyped,
|
||||
mail_method: T.untyped,
|
||||
delivery_method: T.untyped,
|
||||
args: T.untyped,
|
||||
kwargs: T.untyped,
|
||||
params: T.untyped,
|
||||
block: T.nilable(T.proc.params(job: ActionMailer::MailDeliveryJob).void)
|
||||
).returns(T.any(ActionMailer::MailDeliveryJob, FalseClass))
|
||||
end
|
||||
def perform_later(mailer, mail_method, delivery_method, args:, kwargs: T.unsafe(nil), params: T.unsafe(nil), &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
mailer: T.untyped,
|
||||
mail_method: T.untyped,
|
||||
delivery_method: T.untyped,
|
||||
args: T.untyped,
|
||||
kwargs: T.untyped,
|
||||
params: T.untyped
|
||||
).returns(T.untyped)
|
||||
end
|
||||
def perform_now(mailer, mail_method, delivery_method, args:, kwargs: T.unsafe(nil), params: T.unsafe(nil)); end
|
||||
end
|
||||
end
|
||||
30
sorbet/rbi/dsl/action_mailer/queued_delivery.rbi
generated
Normal file
30
sorbet/rbi/dsl/action_mailer/queued_delivery.rbi
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionMailer::QueuedDelivery`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionMailer::QueuedDelivery`.
|
||||
|
||||
|
||||
module ActionMailer::QueuedDelivery
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def deliver_later_queue_name; end
|
||||
def deliver_later_queue_name=(value); end
|
||||
def deliver_later_queue_name?; end
|
||||
def delivery_job; end
|
||||
def delivery_job=(value); end
|
||||
def delivery_job?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def deliver_later_queue_name; end
|
||||
def deliver_later_queue_name=(value); end
|
||||
def deliver_later_queue_name?; end
|
||||
def delivery_job; end
|
||||
def delivery_job=(value); end
|
||||
def delivery_job?; end
|
||||
end
|
||||
end
|
||||
25
sorbet/rbi/dsl/action_mailer/rescuable.rbi
generated
Normal file
25
sorbet/rbi/dsl/action_mailer/rescuable.rbi
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionMailer::Rescuable`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionMailer::Rescuable`.
|
||||
|
||||
|
||||
module ActionMailer::Rescuable
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActiveSupport::Rescuable::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def rescue_handlers; end
|
||||
def rescue_handlers=(value); end
|
||||
def rescue_handlers?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def rescue_handlers; end
|
||||
def rescue_handlers=(value); end
|
||||
def rescue_handlers?; end
|
||||
end
|
||||
end
|
||||
25
sorbet/rbi/dsl/action_mailer/test_case/behavior.rbi
generated
Normal file
25
sorbet/rbi/dsl/action_mailer/test_case/behavior.rbi
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionMailer::TestCase::Behavior`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionMailer::TestCase::Behavior`.
|
||||
|
||||
|
||||
module ActionMailer::TestCase::Behavior
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActiveSupport::Testing::ConstantLookup::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _mailer_class; end
|
||||
def _mailer_class=(value); end
|
||||
def _mailer_class?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def _mailer_class; end
|
||||
def _mailer_class=(value); end
|
||||
def _mailer_class?; end
|
||||
end
|
||||
end
|
||||
952
sorbet/rbi/dsl/action_text/encrypted_rich_text.rbi
generated
Normal file
952
sorbet/rbi/dsl/action_text/encrypted_rich_text.rbi
generated
Normal file
@@ -0,0 +1,952 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionText::EncryptedRichText`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionText::EncryptedRichText`.
|
||||
|
||||
|
||||
class ActionText::EncryptedRichText
|
||||
include GeneratedAssociationMethods
|
||||
extend CommonRelationMethods
|
||||
extend GeneratedRelationMethods
|
||||
|
||||
sig { returns(ActiveStorage::Attached::Many) }
|
||||
def embeds; end
|
||||
|
||||
sig { params(attachable: T.untyped).returns(T.untyped) }
|
||||
def embeds=(attachable); end
|
||||
|
||||
private
|
||||
|
||||
sig { returns(NilClass) }
|
||||
def to_ary; end
|
||||
|
||||
class << self
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(::ActionText::EncryptedRichText)
|
||||
end
|
||||
def new(attributes = nil, &block); end
|
||||
end
|
||||
|
||||
module CommonRelationMethods
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(record: ::ActionText::EncryptedRichText).returns(T.untyped))
|
||||
).returns(T::Boolean)
|
||||
end
|
||||
def any?(&block); end
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T.any(Integer, Float, BigDecimal)) }
|
||||
def average(column_name); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(::ActionText::EncryptedRichText)
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(T::Array[::ActionText::EncryptedRichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(::ActionText::EncryptedRichText)
|
||||
end
|
||||
def build(attributes = nil, &block); end
|
||||
|
||||
sig { params(operation: Symbol, column_name: T.any(String, Symbol)).returns(T.any(Integer, Float, BigDecimal)) }
|
||||
def calculate(operation, column_name); end
|
||||
|
||||
sig { params(column_name: T.nilable(T.any(String, Symbol))).returns(Integer) }
|
||||
sig do
|
||||
params(
|
||||
column_name: NilClass,
|
||||
block: T.proc.params(object: ::ActionText::EncryptedRichText).void
|
||||
).returns(Integer)
|
||||
end
|
||||
def count(column_name = nil, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(::ActionText::EncryptedRichText)
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(T::Array[::ActionText::EncryptedRichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(::ActionText::EncryptedRichText)
|
||||
end
|
||||
def create(attributes = nil, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(::ActionText::EncryptedRichText)
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(T::Array[::ActionText::EncryptedRichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(::ActionText::EncryptedRichText)
|
||||
end
|
||||
def create!(attributes = nil, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(T::Array[::ActionText::EncryptedRichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(::ActionText::EncryptedRichText)
|
||||
end
|
||||
def create_or_find_by(attributes, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(T::Array[::ActionText::EncryptedRichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(::ActionText::EncryptedRichText)
|
||||
end
|
||||
def create_or_find_by!(attributes, &block); end
|
||||
|
||||
sig { returns(T::Array[::ActionText::EncryptedRichText]) }
|
||||
def destroy_all; end
|
||||
|
||||
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
||||
def exists?(conditions = :none); end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::EncryptedRichText)) }
|
||||
def fifth; end
|
||||
|
||||
sig { returns(::ActionText::EncryptedRichText) }
|
||||
def fifth!; end
|
||||
|
||||
sig do
|
||||
params(
|
||||
args: T.any(String, Symbol, ::ActiveSupport::Multibyte::Chars, T::Boolean, BigDecimal, Numeric, ::ActiveRecord::Type::Binary::Data, ::ActiveRecord::Type::Time::Value, Date, Time, ::ActiveSupport::Duration, T::Class[T.anything])
|
||||
).returns(::ActionText::EncryptedRichText)
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
args: T::Array[T.any(String, Symbol, ::ActiveSupport::Multibyte::Chars, T::Boolean, BigDecimal, Numeric, ::ActiveRecord::Type::Binary::Data, ::ActiveRecord::Type::Time::Value, Date, Time, ::ActiveSupport::Duration, T::Class[T.anything])]
|
||||
).returns(T::Enumerable[::ActionText::EncryptedRichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
args: NilClass,
|
||||
block: T.proc.params(object: ::ActionText::EncryptedRichText).void
|
||||
).returns(T.nilable(::ActionText::EncryptedRichText))
|
||||
end
|
||||
def find(args = nil, &block); end
|
||||
|
||||
sig { params(args: T.untyped).returns(T.nilable(::ActionText::EncryptedRichText)) }
|
||||
def find_by(*args); end
|
||||
|
||||
sig { params(args: T.untyped).returns(::ActionText::EncryptedRichText) }
|
||||
def find_by!(*args); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
start: T.untyped,
|
||||
finish: T.untyped,
|
||||
batch_size: Integer,
|
||||
error_on_ignore: T.untyped,
|
||||
order: Symbol,
|
||||
block: T.proc.params(object: ::ActionText::EncryptedRichText).void
|
||||
).void
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
start: T.untyped,
|
||||
finish: T.untyped,
|
||||
batch_size: Integer,
|
||||
error_on_ignore: T.untyped,
|
||||
order: Symbol
|
||||
).returns(T::Enumerator[::ActionText::EncryptedRichText])
|
||||
end
|
||||
def find_each(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, order: :asc, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
start: T.untyped,
|
||||
finish: T.untyped,
|
||||
batch_size: Integer,
|
||||
error_on_ignore: T.untyped,
|
||||
order: Symbol,
|
||||
block: T.proc.params(object: T::Array[::ActionText::EncryptedRichText]).void
|
||||
).void
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
start: T.untyped,
|
||||
finish: T.untyped,
|
||||
batch_size: Integer,
|
||||
error_on_ignore: T.untyped,
|
||||
order: Symbol
|
||||
).returns(T::Enumerator[T::Enumerator[::ActionText::EncryptedRichText]])
|
||||
end
|
||||
def find_in_batches(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, order: :asc, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(T::Array[::ActionText::EncryptedRichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(::ActionText::EncryptedRichText)
|
||||
end
|
||||
def find_or_create_by(attributes, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(T::Array[::ActionText::EncryptedRichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(::ActionText::EncryptedRichText)
|
||||
end
|
||||
def find_or_create_by!(attributes, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(T::Array[::ActionText::EncryptedRichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(::ActionText::EncryptedRichText)
|
||||
end
|
||||
def find_or_initialize_by(attributes, &block); end
|
||||
|
||||
sig { params(signed_id: T.untyped, purpose: T.untyped).returns(T.nilable(::ActionText::EncryptedRichText)) }
|
||||
def find_signed(signed_id, purpose: nil); end
|
||||
|
||||
sig { params(signed_id: T.untyped, purpose: T.untyped).returns(::ActionText::EncryptedRichText) }
|
||||
def find_signed!(signed_id, purpose: nil); end
|
||||
|
||||
sig { params(arg: T.untyped, args: T.untyped).returns(::ActionText::EncryptedRichText) }
|
||||
def find_sole_by(arg, *args); end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::EncryptedRichText)) }
|
||||
sig { params(limit: Integer).returns(T::Array[::ActionText::EncryptedRichText]) }
|
||||
def first(limit = nil); end
|
||||
|
||||
sig { returns(::ActionText::EncryptedRichText) }
|
||||
def first!; end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::EncryptedRichText)) }
|
||||
def forty_two; end
|
||||
|
||||
sig { returns(::ActionText::EncryptedRichText) }
|
||||
def forty_two!; end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::EncryptedRichText)) }
|
||||
def fourth; end
|
||||
|
||||
sig { returns(::ActionText::EncryptedRichText) }
|
||||
def fourth!; end
|
||||
|
||||
sig { returns(Array) }
|
||||
def ids; end
|
||||
|
||||
sig do
|
||||
params(
|
||||
of: Integer,
|
||||
start: T.untyped,
|
||||
finish: T.untyped,
|
||||
load: T.untyped,
|
||||
error_on_ignore: T.untyped,
|
||||
order: Symbol,
|
||||
use_ranges: T.untyped,
|
||||
block: T.proc.params(object: PrivateRelation).void
|
||||
).void
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
of: Integer,
|
||||
start: T.untyped,
|
||||
finish: T.untyped,
|
||||
load: T.untyped,
|
||||
error_on_ignore: T.untyped,
|
||||
order: Symbol,
|
||||
use_ranges: T.untyped
|
||||
).returns(::ActiveRecord::Batches::BatchEnumerator)
|
||||
end
|
||||
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, order: :asc, use_ranges: nil, &block); end
|
||||
|
||||
sig { params(record: T.untyped).returns(T::Boolean) }
|
||||
def include?(record); end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::EncryptedRichText)) }
|
||||
sig { params(limit: Integer).returns(T::Array[::ActionText::EncryptedRichText]) }
|
||||
def last(limit = nil); end
|
||||
|
||||
sig { returns(::ActionText::EncryptedRichText) }
|
||||
def last!; end
|
||||
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(record: ::ActionText::EncryptedRichText).returns(T.untyped))
|
||||
).returns(T::Boolean)
|
||||
end
|
||||
def many?(&block); end
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T.untyped) }
|
||||
def maximum(column_name); end
|
||||
|
||||
sig { params(record: T.untyped).returns(T::Boolean) }
|
||||
def member?(record); end
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T.untyped) }
|
||||
def minimum(column_name); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(::ActionText::EncryptedRichText)
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(T::Array[::ActionText::EncryptedRichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::EncryptedRichText).void)
|
||||
).returns(::ActionText::EncryptedRichText)
|
||||
end
|
||||
def new(attributes = nil, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(record: ::ActionText::EncryptedRichText).returns(T.untyped))
|
||||
).returns(T::Boolean)
|
||||
end
|
||||
def none?(&block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(record: ::ActionText::EncryptedRichText).returns(T.untyped))
|
||||
).returns(T::Boolean)
|
||||
end
|
||||
def one?(&block); end
|
||||
|
||||
sig { params(column_names: T.untyped).returns(T.untyped) }
|
||||
def pick(*column_names); end
|
||||
|
||||
sig { params(column_names: T.untyped).returns(T.untyped) }
|
||||
def pluck(*column_names); end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::EncryptedRichText)) }
|
||||
def second; end
|
||||
|
||||
sig { returns(::ActionText::EncryptedRichText) }
|
||||
def second!; end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::EncryptedRichText)) }
|
||||
def second_to_last; end
|
||||
|
||||
sig { returns(::ActionText::EncryptedRichText) }
|
||||
def second_to_last!; end
|
||||
|
||||
sig { returns(::ActionText::EncryptedRichText) }
|
||||
def sole; end
|
||||
|
||||
sig { params(initial_value_or_column: T.untyped).returns(T.any(Integer, Float, BigDecimal)) }
|
||||
sig do
|
||||
type_parameters(:U)
|
||||
.params(
|
||||
initial_value_or_column: T.nilable(T.type_parameter(:U)),
|
||||
block: T.proc.params(object: ::ActionText::EncryptedRichText).returns(T.type_parameter(:U))
|
||||
).returns(T.type_parameter(:U))
|
||||
end
|
||||
def sum(initial_value_or_column = nil, &block); end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::EncryptedRichText)) }
|
||||
sig { params(limit: Integer).returns(T::Array[::ActionText::EncryptedRichText]) }
|
||||
def take(limit = nil); end
|
||||
|
||||
sig { returns(::ActionText::EncryptedRichText) }
|
||||
def take!; end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::EncryptedRichText)) }
|
||||
def third; end
|
||||
|
||||
sig { returns(::ActionText::EncryptedRichText) }
|
||||
def third!; end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::EncryptedRichText)) }
|
||||
def third_to_last; end
|
||||
|
||||
sig { returns(::ActionText::EncryptedRichText) }
|
||||
def third_to_last!; end
|
||||
end
|
||||
|
||||
module GeneratedAssociationMethods
|
||||
sig { returns(T::Array[T.untyped]) }
|
||||
def embeds_attachment_ids; end
|
||||
|
||||
sig { params(ids: T::Array[T.untyped]).returns(T::Array[T.untyped]) }
|
||||
def embeds_attachment_ids=(ids); end
|
||||
|
||||
# This method is created by ActiveRecord on the `ActionText::RichText` class because it declared `has_many :embeds_attachments`.
|
||||
# 🔗 [Rails guide for `has_many` association](https://guides.rubyonrails.org/association_basics.html#the-has-many-association)
|
||||
sig { returns(ActiveRecord::Associations::CollectionProxy) }
|
||||
def embeds_attachments; end
|
||||
|
||||
sig { params(value: T::Enumerable[T.untyped]).void }
|
||||
def embeds_attachments=(value); end
|
||||
|
||||
sig { returns(T::Array[T.untyped]) }
|
||||
def embeds_blob_ids; end
|
||||
|
||||
sig { params(ids: T::Array[T.untyped]).returns(T::Array[T.untyped]) }
|
||||
def embeds_blob_ids=(ids); end
|
||||
|
||||
# This method is created by ActiveRecord on the `ActionText::RichText` class because it declared `has_many :embeds_blobs, through: :embeds_attachments`.
|
||||
# 🔗 [Rails guide for `has_many_through` association](https://guides.rubyonrails.org/association_basics.html#the-has-many-through-association)
|
||||
sig { returns(ActiveRecord::Associations::CollectionProxy) }
|
||||
def embeds_blobs; end
|
||||
|
||||
sig { params(value: T::Enumerable[T.untyped]).void }
|
||||
def embeds_blobs=(value); end
|
||||
|
||||
sig { returns(T.untyped) }
|
||||
def record; end
|
||||
|
||||
sig { params(value: T.untyped).void }
|
||||
def record=(value); end
|
||||
|
||||
sig { returns(T.untyped) }
|
||||
def reload_record; end
|
||||
|
||||
sig { void }
|
||||
def reset_record; end
|
||||
end
|
||||
|
||||
module GeneratedAssociationRelationMethods
|
||||
sig { returns(PrivateAssociationRelation) }
|
||||
def all; end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def and(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def annotate(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def arel_columns(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def create_with(*args, &blk); end
|
||||
|
||||
sig { params(value: T::Boolean).returns(PrivateAssociationRelation) }
|
||||
def distinct(value = true); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def eager_load(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def except(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def excluding(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def extending(*args, &blk); end
|
||||
|
||||
sig { params(association: Symbol).returns(T::Array[T.untyped]) }
|
||||
def extract_associated(association); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def from(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelationGroupChain) }
|
||||
def group(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def having(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def in_order_of(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def includes(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def invert_where(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def joins(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def left_joins(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def left_outer_joins(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def limit(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def lock(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def merge(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def none(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def null_relation?(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def offset(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def only(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def optimizer_hints(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def or(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def order(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def preload(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def readonly(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def references(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def regroup(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def reorder(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def reselect(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def reverse_order(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def rewhere(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def select(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def strict_loading(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def structurally_compatible?(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def uniq!(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def unscope(*args, &blk); end
|
||||
|
||||
sig { returns(PrivateAssociationRelationWhereChain) }
|
||||
sig { params(args: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def where(*args); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def with(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def with_attached_embeds(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def with_recursive(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def without(*args, &blk); end
|
||||
end
|
||||
|
||||
module GeneratedRelationMethods
|
||||
sig { returns(PrivateRelation) }
|
||||
def all; end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def and(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def annotate(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def arel_columns(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def create_with(*args, &blk); end
|
||||
|
||||
sig { params(value: T::Boolean).returns(PrivateRelation) }
|
||||
def distinct(value = true); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def eager_load(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def except(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def excluding(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def extending(*args, &blk); end
|
||||
|
||||
sig { params(association: Symbol).returns(T::Array[T.untyped]) }
|
||||
def extract_associated(association); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def from(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelationGroupChain) }
|
||||
def group(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def having(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def in_order_of(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def includes(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def invert_where(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def joins(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def left_joins(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def left_outer_joins(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def limit(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def lock(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def merge(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def none(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def null_relation?(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def offset(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def only(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def optimizer_hints(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def or(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def order(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def preload(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def readonly(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def references(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def regroup(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def reorder(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def reselect(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def reverse_order(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def rewhere(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def select(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def strict_loading(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def structurally_compatible?(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def uniq!(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def unscope(*args, &blk); end
|
||||
|
||||
sig { returns(PrivateRelationWhereChain) }
|
||||
sig { params(args: T.untyped).returns(PrivateRelation) }
|
||||
def where(*args); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def with(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def with_attached_embeds(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def with_recursive(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def without(*args, &blk); end
|
||||
end
|
||||
|
||||
class PrivateAssociationRelation < ::ActiveRecord::AssociationRelation
|
||||
include CommonRelationMethods
|
||||
include GeneratedAssociationRelationMethods
|
||||
|
||||
Elem = type_member { { fixed: ::ActionText::EncryptedRichText } }
|
||||
|
||||
sig { returns(T::Array[::ActionText::EncryptedRichText]) }
|
||||
def to_a; end
|
||||
|
||||
sig { returns(T::Array[::ActionText::EncryptedRichText]) }
|
||||
def to_ary; end
|
||||
end
|
||||
|
||||
class PrivateAssociationRelationGroupChain < PrivateAssociationRelation
|
||||
Elem = type_member { { fixed: ::ActionText::EncryptedRichText } }
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)]) }
|
||||
def average(column_name); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
operation: Symbol,
|
||||
column_name: T.any(String, Symbol)
|
||||
).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)])
|
||||
end
|
||||
def calculate(operation, column_name); end
|
||||
|
||||
sig { params(column_name: T.untyped).returns(T::Hash[T.untyped, Integer]) }
|
||||
def count(column_name = nil); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(T.self_type) }
|
||||
def having(*args, &blk); end
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.untyped]) }
|
||||
def maximum(column_name); end
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.untyped]) }
|
||||
def minimum(column_name); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
column_name: T.nilable(T.any(String, Symbol)),
|
||||
block: T.nilable(T.proc.params(record: T.untyped).returns(T.untyped))
|
||||
).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)])
|
||||
end
|
||||
def sum(column_name = nil, &block); end
|
||||
end
|
||||
|
||||
class PrivateAssociationRelationWhereChain
|
||||
Elem = type_member { { fixed: ::ActionText::EncryptedRichText } }
|
||||
|
||||
sig { params(args: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def associated(*args); end
|
||||
|
||||
sig { params(args: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def missing(*args); end
|
||||
|
||||
sig { params(opts: T.untyped, rest: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def not(opts, *rest); end
|
||||
end
|
||||
|
||||
class PrivateCollectionProxy < ::ActiveRecord::Associations::CollectionProxy
|
||||
include CommonRelationMethods
|
||||
include GeneratedAssociationRelationMethods
|
||||
|
||||
Elem = type_member { { fixed: ::ActionText::EncryptedRichText } }
|
||||
|
||||
sig do
|
||||
params(
|
||||
records: T.any(::ActionText::EncryptedRichText, T::Enumerable[T.any(::ActionText::EncryptedRichText, T::Enumerable[::ActionText::EncryptedRichText])])
|
||||
).returns(PrivateCollectionProxy)
|
||||
end
|
||||
def <<(*records); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
records: T.any(::ActionText::EncryptedRichText, T::Enumerable[T.any(::ActionText::EncryptedRichText, T::Enumerable[::ActionText::EncryptedRichText])])
|
||||
).returns(PrivateCollectionProxy)
|
||||
end
|
||||
def append(*records); end
|
||||
|
||||
sig { returns(PrivateCollectionProxy) }
|
||||
def clear; end
|
||||
|
||||
sig do
|
||||
params(
|
||||
records: T.any(::ActionText::EncryptedRichText, T::Enumerable[T.any(::ActionText::EncryptedRichText, T::Enumerable[::ActionText::EncryptedRichText])])
|
||||
).returns(PrivateCollectionProxy)
|
||||
end
|
||||
def concat(*records); end
|
||||
|
||||
sig { returns(T::Array[::ActionText::EncryptedRichText]) }
|
||||
def load_target; end
|
||||
|
||||
sig do
|
||||
params(
|
||||
records: T.any(::ActionText::EncryptedRichText, T::Enumerable[T.any(::ActionText::EncryptedRichText, T::Enumerable[::ActionText::EncryptedRichText])])
|
||||
).returns(PrivateCollectionProxy)
|
||||
end
|
||||
def prepend(*records); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
records: T.any(::ActionText::EncryptedRichText, T::Enumerable[T.any(::ActionText::EncryptedRichText, T::Enumerable[::ActionText::EncryptedRichText])])
|
||||
).returns(PrivateCollectionProxy)
|
||||
end
|
||||
def push(*records); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
other_array: T.any(::ActionText::EncryptedRichText, T::Enumerable[T.any(::ActionText::EncryptedRichText, T::Enumerable[::ActionText::EncryptedRichText])])
|
||||
).returns(T::Array[::ActionText::EncryptedRichText])
|
||||
end
|
||||
def replace(other_array); end
|
||||
|
||||
sig { returns(PrivateAssociationRelation) }
|
||||
def scope; end
|
||||
|
||||
sig { returns(T::Array[::ActionText::EncryptedRichText]) }
|
||||
def target; end
|
||||
|
||||
sig { returns(T::Array[::ActionText::EncryptedRichText]) }
|
||||
def to_a; end
|
||||
|
||||
sig { returns(T::Array[::ActionText::EncryptedRichText]) }
|
||||
def to_ary; end
|
||||
end
|
||||
|
||||
class PrivateRelation < ::ActiveRecord::Relation
|
||||
include CommonRelationMethods
|
||||
include GeneratedRelationMethods
|
||||
|
||||
Elem = type_member { { fixed: ::ActionText::EncryptedRichText } }
|
||||
|
||||
sig { returns(T::Array[::ActionText::EncryptedRichText]) }
|
||||
def to_a; end
|
||||
|
||||
sig { returns(T::Array[::ActionText::EncryptedRichText]) }
|
||||
def to_ary; end
|
||||
end
|
||||
|
||||
class PrivateRelationGroupChain < PrivateRelation
|
||||
Elem = type_member { { fixed: ::ActionText::EncryptedRichText } }
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)]) }
|
||||
def average(column_name); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
operation: Symbol,
|
||||
column_name: T.any(String, Symbol)
|
||||
).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)])
|
||||
end
|
||||
def calculate(operation, column_name); end
|
||||
|
||||
sig { params(column_name: T.untyped).returns(T::Hash[T.untyped, Integer]) }
|
||||
def count(column_name = nil); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(T.self_type) }
|
||||
def having(*args, &blk); end
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.untyped]) }
|
||||
def maximum(column_name); end
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.untyped]) }
|
||||
def minimum(column_name); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
column_name: T.nilable(T.any(String, Symbol)),
|
||||
block: T.nilable(T.proc.params(record: T.untyped).returns(T.untyped))
|
||||
).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)])
|
||||
end
|
||||
def sum(column_name = nil, &block); end
|
||||
end
|
||||
|
||||
class PrivateRelationWhereChain
|
||||
Elem = type_member { { fixed: ::ActionText::EncryptedRichText } }
|
||||
|
||||
sig { params(args: T.untyped).returns(PrivateRelation) }
|
||||
def associated(*args); end
|
||||
|
||||
sig { params(args: T.untyped).returns(PrivateRelation) }
|
||||
def missing(*args); end
|
||||
|
||||
sig { params(opts: T.untyped, rest: T.untyped).returns(PrivateRelation) }
|
||||
def not(opts, *rest); end
|
||||
end
|
||||
end
|
||||
953
sorbet/rbi/dsl/action_text/rich_text.rbi
generated
Normal file
953
sorbet/rbi/dsl/action_text/rich_text.rbi
generated
Normal file
@@ -0,0 +1,953 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionText::RichText`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionText::RichText`.
|
||||
|
||||
|
||||
class ActionText::RichText
|
||||
include GeneratedAssociationMethods
|
||||
extend CommonRelationMethods
|
||||
extend GeneratedRelationMethods
|
||||
|
||||
sig { returns(ActiveStorage::Attached::Many) }
|
||||
def embeds; end
|
||||
|
||||
sig { params(attachable: T.untyped).returns(T.untyped) }
|
||||
def embeds=(attachable); end
|
||||
|
||||
private
|
||||
|
||||
sig { returns(NilClass) }
|
||||
def to_ary; end
|
||||
|
||||
class << self
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(::ActionText::RichText)
|
||||
end
|
||||
def new(attributes = nil, &block); end
|
||||
end
|
||||
|
||||
module CommonRelationMethods
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(record: ::ActionText::RichText).returns(T.untyped))
|
||||
).returns(T::Boolean)
|
||||
end
|
||||
def any?(&block); end
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T.any(Integer, Float, BigDecimal)) }
|
||||
def average(column_name); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(::ActionText::RichText)
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(T::Array[::ActionText::RichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(::ActionText::RichText)
|
||||
end
|
||||
def build(attributes = nil, &block); end
|
||||
|
||||
sig { params(operation: Symbol, column_name: T.any(String, Symbol)).returns(T.any(Integer, Float, BigDecimal)) }
|
||||
def calculate(operation, column_name); end
|
||||
|
||||
sig { params(column_name: T.nilable(T.any(String, Symbol))).returns(Integer) }
|
||||
sig { params(column_name: NilClass, block: T.proc.params(object: ::ActionText::RichText).void).returns(Integer) }
|
||||
def count(column_name = nil, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(::ActionText::RichText)
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(T::Array[::ActionText::RichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(::ActionText::RichText)
|
||||
end
|
||||
def create(attributes = nil, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(::ActionText::RichText)
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(T::Array[::ActionText::RichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(::ActionText::RichText)
|
||||
end
|
||||
def create!(attributes = nil, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(T::Array[::ActionText::RichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(::ActionText::RichText)
|
||||
end
|
||||
def create_or_find_by(attributes, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(T::Array[::ActionText::RichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(::ActionText::RichText)
|
||||
end
|
||||
def create_or_find_by!(attributes, &block); end
|
||||
|
||||
sig { returns(T::Array[::ActionText::RichText]) }
|
||||
def destroy_all; end
|
||||
|
||||
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
||||
def exists?(conditions = :none); end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::RichText)) }
|
||||
def fifth; end
|
||||
|
||||
sig { returns(::ActionText::RichText) }
|
||||
def fifth!; end
|
||||
|
||||
sig do
|
||||
params(
|
||||
args: T.any(String, Symbol, ::ActiveSupport::Multibyte::Chars, T::Boolean, BigDecimal, Numeric, ::ActiveRecord::Type::Binary::Data, ::ActiveRecord::Type::Time::Value, Date, Time, ::ActiveSupport::Duration, T::Class[T.anything])
|
||||
).returns(::ActionText::RichText)
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
args: T::Array[T.any(String, Symbol, ::ActiveSupport::Multibyte::Chars, T::Boolean, BigDecimal, Numeric, ::ActiveRecord::Type::Binary::Data, ::ActiveRecord::Type::Time::Value, Date, Time, ::ActiveSupport::Duration, T::Class[T.anything])]
|
||||
).returns(T::Enumerable[::ActionText::RichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
args: NilClass,
|
||||
block: T.proc.params(object: ::ActionText::RichText).void
|
||||
).returns(T.nilable(::ActionText::RichText))
|
||||
end
|
||||
def find(args = nil, &block); end
|
||||
|
||||
sig { params(args: T.untyped).returns(T.nilable(::ActionText::RichText)) }
|
||||
def find_by(*args); end
|
||||
|
||||
sig { params(args: T.untyped).returns(::ActionText::RichText) }
|
||||
def find_by!(*args); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
start: T.untyped,
|
||||
finish: T.untyped,
|
||||
batch_size: Integer,
|
||||
error_on_ignore: T.untyped,
|
||||
order: Symbol,
|
||||
block: T.proc.params(object: ::ActionText::RichText).void
|
||||
).void
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
start: T.untyped,
|
||||
finish: T.untyped,
|
||||
batch_size: Integer,
|
||||
error_on_ignore: T.untyped,
|
||||
order: Symbol
|
||||
).returns(T::Enumerator[::ActionText::RichText])
|
||||
end
|
||||
def find_each(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, order: :asc, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
start: T.untyped,
|
||||
finish: T.untyped,
|
||||
batch_size: Integer,
|
||||
error_on_ignore: T.untyped,
|
||||
order: Symbol,
|
||||
block: T.proc.params(object: T::Array[::ActionText::RichText]).void
|
||||
).void
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
start: T.untyped,
|
||||
finish: T.untyped,
|
||||
batch_size: Integer,
|
||||
error_on_ignore: T.untyped,
|
||||
order: Symbol
|
||||
).returns(T::Enumerator[T::Enumerator[::ActionText::RichText]])
|
||||
end
|
||||
def find_in_batches(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, order: :asc, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(T::Array[::ActionText::RichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(::ActionText::RichText)
|
||||
end
|
||||
def find_or_create_by(attributes, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(T::Array[::ActionText::RichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(::ActionText::RichText)
|
||||
end
|
||||
def find_or_create_by!(attributes, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(T::Array[::ActionText::RichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(::ActionText::RichText)
|
||||
end
|
||||
def find_or_initialize_by(attributes, &block); end
|
||||
|
||||
sig { params(signed_id: T.untyped, purpose: T.untyped).returns(T.nilable(::ActionText::RichText)) }
|
||||
def find_signed(signed_id, purpose: nil); end
|
||||
|
||||
sig { params(signed_id: T.untyped, purpose: T.untyped).returns(::ActionText::RichText) }
|
||||
def find_signed!(signed_id, purpose: nil); end
|
||||
|
||||
sig { params(arg: T.untyped, args: T.untyped).returns(::ActionText::RichText) }
|
||||
def find_sole_by(arg, *args); end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::RichText)) }
|
||||
sig { params(limit: Integer).returns(T::Array[::ActionText::RichText]) }
|
||||
def first(limit = nil); end
|
||||
|
||||
sig { returns(::ActionText::RichText) }
|
||||
def first!; end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::RichText)) }
|
||||
def forty_two; end
|
||||
|
||||
sig { returns(::ActionText::RichText) }
|
||||
def forty_two!; end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::RichText)) }
|
||||
def fourth; end
|
||||
|
||||
sig { returns(::ActionText::RichText) }
|
||||
def fourth!; end
|
||||
|
||||
sig { returns(Array) }
|
||||
def ids; end
|
||||
|
||||
sig do
|
||||
params(
|
||||
of: Integer,
|
||||
start: T.untyped,
|
||||
finish: T.untyped,
|
||||
load: T.untyped,
|
||||
error_on_ignore: T.untyped,
|
||||
order: Symbol,
|
||||
use_ranges: T.untyped,
|
||||
block: T.proc.params(object: PrivateRelation).void
|
||||
).void
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
of: Integer,
|
||||
start: T.untyped,
|
||||
finish: T.untyped,
|
||||
load: T.untyped,
|
||||
error_on_ignore: T.untyped,
|
||||
order: Symbol,
|
||||
use_ranges: T.untyped
|
||||
).returns(::ActiveRecord::Batches::BatchEnumerator)
|
||||
end
|
||||
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, order: :asc, use_ranges: nil, &block); end
|
||||
|
||||
sig { params(record: T.untyped).returns(T::Boolean) }
|
||||
def include?(record); end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::RichText)) }
|
||||
sig { params(limit: Integer).returns(T::Array[::ActionText::RichText]) }
|
||||
def last(limit = nil); end
|
||||
|
||||
sig { returns(::ActionText::RichText) }
|
||||
def last!; end
|
||||
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(record: ::ActionText::RichText).returns(T.untyped))
|
||||
).returns(T::Boolean)
|
||||
end
|
||||
def many?(&block); end
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T.untyped) }
|
||||
def maximum(column_name); end
|
||||
|
||||
sig { params(record: T.untyped).returns(T::Boolean) }
|
||||
def member?(record); end
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T.untyped) }
|
||||
def minimum(column_name); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(::ActionText::RichText)
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T::Array[T.untyped],
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(T::Array[::ActionText::RichText])
|
||||
end
|
||||
sig do
|
||||
params(
|
||||
attributes: T.untyped,
|
||||
block: T.nilable(T.proc.params(object: ::ActionText::RichText).void)
|
||||
).returns(::ActionText::RichText)
|
||||
end
|
||||
def new(attributes = nil, &block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(record: ::ActionText::RichText).returns(T.untyped))
|
||||
).returns(T::Boolean)
|
||||
end
|
||||
def none?(&block); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
block: T.nilable(T.proc.params(record: ::ActionText::RichText).returns(T.untyped))
|
||||
).returns(T::Boolean)
|
||||
end
|
||||
def one?(&block); end
|
||||
|
||||
sig { params(column_names: T.untyped).returns(T.untyped) }
|
||||
def pick(*column_names); end
|
||||
|
||||
sig { params(column_names: T.untyped).returns(T.untyped) }
|
||||
def pluck(*column_names); end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::RichText)) }
|
||||
def second; end
|
||||
|
||||
sig { returns(::ActionText::RichText) }
|
||||
def second!; end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::RichText)) }
|
||||
def second_to_last; end
|
||||
|
||||
sig { returns(::ActionText::RichText) }
|
||||
def second_to_last!; end
|
||||
|
||||
sig { returns(::ActionText::RichText) }
|
||||
def sole; end
|
||||
|
||||
sig { params(initial_value_or_column: T.untyped).returns(T.any(Integer, Float, BigDecimal)) }
|
||||
sig do
|
||||
type_parameters(:U)
|
||||
.params(
|
||||
initial_value_or_column: T.nilable(T.type_parameter(:U)),
|
||||
block: T.proc.params(object: ::ActionText::RichText).returns(T.type_parameter(:U))
|
||||
).returns(T.type_parameter(:U))
|
||||
end
|
||||
def sum(initial_value_or_column = nil, &block); end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::RichText)) }
|
||||
sig { params(limit: Integer).returns(T::Array[::ActionText::RichText]) }
|
||||
def take(limit = nil); end
|
||||
|
||||
sig { returns(::ActionText::RichText) }
|
||||
def take!; end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::RichText)) }
|
||||
def third; end
|
||||
|
||||
sig { returns(::ActionText::RichText) }
|
||||
def third!; end
|
||||
|
||||
sig { returns(T.nilable(::ActionText::RichText)) }
|
||||
def third_to_last; end
|
||||
|
||||
sig { returns(::ActionText::RichText) }
|
||||
def third_to_last!; end
|
||||
end
|
||||
|
||||
module GeneratedAssociationMethods
|
||||
sig { returns(T::Array[T.untyped]) }
|
||||
def embeds_attachment_ids; end
|
||||
|
||||
sig { params(ids: T::Array[T.untyped]).returns(T::Array[T.untyped]) }
|
||||
def embeds_attachment_ids=(ids); end
|
||||
|
||||
# This method is created by ActiveRecord on the `ActionText::RichText` class because it declared `has_many :embeds_attachments`.
|
||||
# 🔗 [Rails guide for `has_many` association](https://guides.rubyonrails.org/association_basics.html#the-has-many-association)
|
||||
sig { returns(ActiveRecord::Associations::CollectionProxy) }
|
||||
def embeds_attachments; end
|
||||
|
||||
sig { params(value: T::Enumerable[T.untyped]).void }
|
||||
def embeds_attachments=(value); end
|
||||
|
||||
sig { returns(T::Array[T.untyped]) }
|
||||
def embeds_blob_ids; end
|
||||
|
||||
sig { params(ids: T::Array[T.untyped]).returns(T::Array[T.untyped]) }
|
||||
def embeds_blob_ids=(ids); end
|
||||
|
||||
# This method is created by ActiveRecord on the `ActionText::RichText` class because it declared `has_many :embeds_blobs, through: :embeds_attachments`.
|
||||
# 🔗 [Rails guide for `has_many_through` association](https://guides.rubyonrails.org/association_basics.html#the-has-many-through-association)
|
||||
sig { returns(ActiveRecord::Associations::CollectionProxy) }
|
||||
def embeds_blobs; end
|
||||
|
||||
sig { params(value: T::Enumerable[T.untyped]).void }
|
||||
def embeds_blobs=(value); end
|
||||
|
||||
sig { returns(T.untyped) }
|
||||
def record; end
|
||||
|
||||
sig { params(value: T.untyped).void }
|
||||
def record=(value); end
|
||||
|
||||
sig { returns(T::Boolean) }
|
||||
def record_changed?; end
|
||||
|
||||
sig { returns(T::Boolean) }
|
||||
def record_previously_changed?; end
|
||||
|
||||
sig { returns(T.untyped) }
|
||||
def reload_record; end
|
||||
|
||||
sig { void }
|
||||
def reset_record; end
|
||||
end
|
||||
|
||||
module GeneratedAssociationRelationMethods
|
||||
sig { returns(PrivateAssociationRelation) }
|
||||
def all; end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def and(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def annotate(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def arel_columns(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def create_with(*args, &blk); end
|
||||
|
||||
sig { params(value: T::Boolean).returns(PrivateAssociationRelation) }
|
||||
def distinct(value = true); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def eager_load(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def except(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def excluding(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def extending(*args, &blk); end
|
||||
|
||||
sig { params(association: Symbol).returns(T::Array[T.untyped]) }
|
||||
def extract_associated(association); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def from(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelationGroupChain) }
|
||||
def group(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def having(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def in_order_of(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def includes(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def invert_where(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def joins(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def left_joins(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def left_outer_joins(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def limit(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def lock(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def merge(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def none(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def null_relation?(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def offset(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def only(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def optimizer_hints(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def or(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def order(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def preload(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def readonly(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def references(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def regroup(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def reorder(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def reselect(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def reverse_order(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def rewhere(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def select(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def strict_loading(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def structurally_compatible?(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def uniq!(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def unscope(*args, &blk); end
|
||||
|
||||
sig { returns(PrivateAssociationRelationWhereChain) }
|
||||
sig { params(args: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def where(*args); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def with(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def with_attached_embeds(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def with_recursive(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def without(*args, &blk); end
|
||||
end
|
||||
|
||||
module GeneratedRelationMethods
|
||||
sig { returns(PrivateRelation) }
|
||||
def all; end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def and(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def annotate(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def arel_columns(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def create_with(*args, &blk); end
|
||||
|
||||
sig { params(value: T::Boolean).returns(PrivateRelation) }
|
||||
def distinct(value = true); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def eager_load(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def except(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def excluding(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def extending(*args, &blk); end
|
||||
|
||||
sig { params(association: Symbol).returns(T::Array[T.untyped]) }
|
||||
def extract_associated(association); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def from(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelationGroupChain) }
|
||||
def group(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def having(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def in_order_of(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def includes(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def invert_where(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def joins(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def left_joins(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def left_outer_joins(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def limit(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def lock(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def merge(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def none(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def null_relation?(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def offset(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def only(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def optimizer_hints(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def or(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def order(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def preload(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def readonly(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def references(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def regroup(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def reorder(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def reselect(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def reverse_order(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def rewhere(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def select(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def strict_loading(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def structurally_compatible?(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def uniq!(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def unscope(*args, &blk); end
|
||||
|
||||
sig { returns(PrivateRelationWhereChain) }
|
||||
sig { params(args: T.untyped).returns(PrivateRelation) }
|
||||
def where(*args); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def with(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def with_attached_embeds(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def with_recursive(*args, &blk); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(PrivateRelation) }
|
||||
def without(*args, &blk); end
|
||||
end
|
||||
|
||||
class PrivateAssociationRelation < ::ActiveRecord::AssociationRelation
|
||||
include CommonRelationMethods
|
||||
include GeneratedAssociationRelationMethods
|
||||
|
||||
Elem = type_member { { fixed: ::ActionText::RichText } }
|
||||
|
||||
sig { returns(T::Array[::ActionText::RichText]) }
|
||||
def to_a; end
|
||||
|
||||
sig { returns(T::Array[::ActionText::RichText]) }
|
||||
def to_ary; end
|
||||
end
|
||||
|
||||
class PrivateAssociationRelationGroupChain < PrivateAssociationRelation
|
||||
Elem = type_member { { fixed: ::ActionText::RichText } }
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)]) }
|
||||
def average(column_name); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
operation: Symbol,
|
||||
column_name: T.any(String, Symbol)
|
||||
).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)])
|
||||
end
|
||||
def calculate(operation, column_name); end
|
||||
|
||||
sig { params(column_name: T.untyped).returns(T::Hash[T.untyped, Integer]) }
|
||||
def count(column_name = nil); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(T.self_type) }
|
||||
def having(*args, &blk); end
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.untyped]) }
|
||||
def maximum(column_name); end
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.untyped]) }
|
||||
def minimum(column_name); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
column_name: T.nilable(T.any(String, Symbol)),
|
||||
block: T.nilable(T.proc.params(record: T.untyped).returns(T.untyped))
|
||||
).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)])
|
||||
end
|
||||
def sum(column_name = nil, &block); end
|
||||
end
|
||||
|
||||
class PrivateAssociationRelationWhereChain
|
||||
Elem = type_member { { fixed: ::ActionText::RichText } }
|
||||
|
||||
sig { params(args: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def associated(*args); end
|
||||
|
||||
sig { params(args: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def missing(*args); end
|
||||
|
||||
sig { params(opts: T.untyped, rest: T.untyped).returns(PrivateAssociationRelation) }
|
||||
def not(opts, *rest); end
|
||||
end
|
||||
|
||||
class PrivateCollectionProxy < ::ActiveRecord::Associations::CollectionProxy
|
||||
include CommonRelationMethods
|
||||
include GeneratedAssociationRelationMethods
|
||||
|
||||
Elem = type_member { { fixed: ::ActionText::RichText } }
|
||||
|
||||
sig do
|
||||
params(
|
||||
records: T.any(::ActionText::RichText, T::Enumerable[T.any(::ActionText::RichText, T::Enumerable[::ActionText::RichText])])
|
||||
).returns(PrivateCollectionProxy)
|
||||
end
|
||||
def <<(*records); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
records: T.any(::ActionText::RichText, T::Enumerable[T.any(::ActionText::RichText, T::Enumerable[::ActionText::RichText])])
|
||||
).returns(PrivateCollectionProxy)
|
||||
end
|
||||
def append(*records); end
|
||||
|
||||
sig { returns(PrivateCollectionProxy) }
|
||||
def clear; end
|
||||
|
||||
sig do
|
||||
params(
|
||||
records: T.any(::ActionText::RichText, T::Enumerable[T.any(::ActionText::RichText, T::Enumerable[::ActionText::RichText])])
|
||||
).returns(PrivateCollectionProxy)
|
||||
end
|
||||
def concat(*records); end
|
||||
|
||||
sig { returns(T::Array[::ActionText::RichText]) }
|
||||
def load_target; end
|
||||
|
||||
sig do
|
||||
params(
|
||||
records: T.any(::ActionText::RichText, T::Enumerable[T.any(::ActionText::RichText, T::Enumerable[::ActionText::RichText])])
|
||||
).returns(PrivateCollectionProxy)
|
||||
end
|
||||
def prepend(*records); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
records: T.any(::ActionText::RichText, T::Enumerable[T.any(::ActionText::RichText, T::Enumerable[::ActionText::RichText])])
|
||||
).returns(PrivateCollectionProxy)
|
||||
end
|
||||
def push(*records); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
other_array: T.any(::ActionText::RichText, T::Enumerable[T.any(::ActionText::RichText, T::Enumerable[::ActionText::RichText])])
|
||||
).returns(T::Array[::ActionText::RichText])
|
||||
end
|
||||
def replace(other_array); end
|
||||
|
||||
sig { returns(PrivateAssociationRelation) }
|
||||
def scope; end
|
||||
|
||||
sig { returns(T::Array[::ActionText::RichText]) }
|
||||
def target; end
|
||||
|
||||
sig { returns(T::Array[::ActionText::RichText]) }
|
||||
def to_a; end
|
||||
|
||||
sig { returns(T::Array[::ActionText::RichText]) }
|
||||
def to_ary; end
|
||||
end
|
||||
|
||||
class PrivateRelation < ::ActiveRecord::Relation
|
||||
include CommonRelationMethods
|
||||
include GeneratedRelationMethods
|
||||
|
||||
Elem = type_member { { fixed: ::ActionText::RichText } }
|
||||
|
||||
sig { returns(T::Array[::ActionText::RichText]) }
|
||||
def to_a; end
|
||||
|
||||
sig { returns(T::Array[::ActionText::RichText]) }
|
||||
def to_ary; end
|
||||
end
|
||||
|
||||
class PrivateRelationGroupChain < PrivateRelation
|
||||
Elem = type_member { { fixed: ::ActionText::RichText } }
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)]) }
|
||||
def average(column_name); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
operation: Symbol,
|
||||
column_name: T.any(String, Symbol)
|
||||
).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)])
|
||||
end
|
||||
def calculate(operation, column_name); end
|
||||
|
||||
sig { params(column_name: T.untyped).returns(T::Hash[T.untyped, Integer]) }
|
||||
def count(column_name = nil); end
|
||||
|
||||
sig { params(args: T.untyped, blk: T.untyped).returns(T.self_type) }
|
||||
def having(*args, &blk); end
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.untyped]) }
|
||||
def maximum(column_name); end
|
||||
|
||||
sig { params(column_name: T.any(String, Symbol)).returns(T::Hash[T.untyped, T.untyped]) }
|
||||
def minimum(column_name); end
|
||||
|
||||
sig do
|
||||
params(
|
||||
column_name: T.nilable(T.any(String, Symbol)),
|
||||
block: T.nilable(T.proc.params(record: T.untyped).returns(T.untyped))
|
||||
).returns(T::Hash[T.untyped, T.any(Integer, Float, BigDecimal)])
|
||||
end
|
||||
def sum(column_name = nil, &block); end
|
||||
end
|
||||
|
||||
class PrivateRelationWhereChain
|
||||
Elem = type_member { { fixed: ::ActionText::RichText } }
|
||||
|
||||
sig { params(args: T.untyped).returns(PrivateRelation) }
|
||||
def associated(*args); end
|
||||
|
||||
sig { params(args: T.untyped).returns(PrivateRelation) }
|
||||
def missing(*args); end
|
||||
|
||||
sig { params(opts: T.untyped, rest: T.untyped).returns(PrivateRelation) }
|
||||
def not(opts, *rest); end
|
||||
end
|
||||
end
|
||||
14
sorbet/rbi/dsl/action_view/helpers.rbi
generated
Normal file
14
sorbet/rbi/dsl/action_view/helpers.rbi
generated
Normal file
@@ -0,0 +1,14 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionView::Helpers`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionView::Helpers`.
|
||||
|
||||
|
||||
module ActionView::Helpers
|
||||
include GeneratedUrlHelpersModule
|
||||
include GeneratedPathHelpersModule
|
||||
|
||||
mixes_in_class_methods ::ActionView::Helpers::UrlHelper::ClassMethods
|
||||
mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods
|
||||
end
|
||||
11
sorbet/rbi/dsl/action_view/helpers/form_helper.rbi
generated
Normal file
11
sorbet/rbi/dsl/action_view/helpers/form_helper.rbi
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionView::Helpers::FormHelper`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionView::Helpers::FormHelper`.
|
||||
|
||||
|
||||
module ActionView::Helpers::FormHelper
|
||||
mixes_in_class_methods ::ActionView::Helpers::UrlHelper::ClassMethods
|
||||
mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods
|
||||
end
|
||||
11
sorbet/rbi/dsl/action_view/helpers/form_tag_helper.rbi
generated
Normal file
11
sorbet/rbi/dsl/action_view/helpers/form_tag_helper.rbi
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionView::Helpers::FormTagHelper`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionView::Helpers::FormTagHelper`.
|
||||
|
||||
|
||||
module ActionView::Helpers::FormTagHelper
|
||||
mixes_in_class_methods ::ActionView::Helpers::UrlHelper::ClassMethods
|
||||
mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods
|
||||
end
|
||||
10
sorbet/rbi/dsl/action_view/helpers/text_helper.rbi
generated
Normal file
10
sorbet/rbi/dsl/action_view/helpers/text_helper.rbi
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionView::Helpers::TextHelper`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionView::Helpers::TextHelper`.
|
||||
|
||||
|
||||
module ActionView::Helpers::TextHelper
|
||||
mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods
|
||||
end
|
||||
28
sorbet/rbi/dsl/action_view/layouts.rbi
generated
Normal file
28
sorbet/rbi/dsl/action_view/layouts.rbi
generated
Normal file
@@ -0,0 +1,28 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionView::Layouts`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionView::Layouts`.
|
||||
|
||||
|
||||
module ActionView::Layouts
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActionView::ViewPaths::ClassMethods
|
||||
mixes_in_class_methods ::ActionView::Rendering::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _layout; end
|
||||
def _layout=(value); end
|
||||
def _layout?; end
|
||||
def _layout_conditions; end
|
||||
def _layout_conditions=(value); end
|
||||
def _layout_conditions?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def _layout_conditions; end
|
||||
def _layout_conditions?; end
|
||||
end
|
||||
end
|
||||
10
sorbet/rbi/dsl/action_view/rendering.rbi
generated
Normal file
10
sorbet/rbi/dsl/action_view/rendering.rbi
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActionView::Rendering`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActionView::Rendering`.
|
||||
|
||||
|
||||
module ActionView::Rendering
|
||||
mixes_in_class_methods ::ActionView::ViewPaths::ClassMethods
|
||||
end
|
||||
24
sorbet/rbi/dsl/active_job/callbacks.rbi
generated
Normal file
24
sorbet/rbi/dsl/active_job/callbacks.rbi
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveJob::Callbacks`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveJob::Callbacks`.
|
||||
|
||||
|
||||
module ActiveJob::Callbacks
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def __callbacks; end
|
||||
def __callbacks=(value); end
|
||||
def __callbacks?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def __callbacks; end
|
||||
def __callbacks?; end
|
||||
end
|
||||
end
|
||||
19
sorbet/rbi/dsl/active_job/enqueuing.rbi
generated
Normal file
19
sorbet/rbi/dsl/active_job/enqueuing.rbi
generated
Normal file
@@ -0,0 +1,19 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveJob::Enqueuing`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveJob::Enqueuing`.
|
||||
|
||||
|
||||
module ActiveJob::Enqueuing
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def enqueue_after_transaction_commit; end
|
||||
def enqueue_after_transaction_commit=(value); end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods; end
|
||||
end
|
||||
26
sorbet/rbi/dsl/active_job/exceptions.rbi
generated
Normal file
26
sorbet/rbi/dsl/active_job/exceptions.rbi
generated
Normal file
@@ -0,0 +1,26 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveJob::Exceptions`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveJob::Exceptions`.
|
||||
|
||||
|
||||
module ActiveJob::Exceptions
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def after_discard_procs; end
|
||||
def after_discard_procs=(value); end
|
||||
def after_discard_procs?; end
|
||||
def retry_jitter; end
|
||||
def retry_jitter=(value); end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def after_discard_procs; end
|
||||
def after_discard_procs=(value); end
|
||||
def after_discard_procs?; end
|
||||
end
|
||||
end
|
||||
25
sorbet/rbi/dsl/active_job/execution.rbi
generated
Normal file
25
sorbet/rbi/dsl/active_job/execution.rbi
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveJob::Execution`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveJob::Execution`.
|
||||
|
||||
|
||||
module ActiveJob::Execution
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActiveSupport::Rescuable::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def rescue_handlers; end
|
||||
def rescue_handlers=(value); end
|
||||
def rescue_handlers?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def rescue_handlers; end
|
||||
def rescue_handlers=(value); end
|
||||
def rescue_handlers?; end
|
||||
end
|
||||
end
|
||||
20
sorbet/rbi/dsl/active_job/logging.rbi
generated
Normal file
20
sorbet/rbi/dsl/active_job/logging.rbi
generated
Normal file
@@ -0,0 +1,20 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveJob::Logging`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveJob::Logging`.
|
||||
|
||||
|
||||
module ActiveJob::Logging
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def log_arguments; end
|
||||
def log_arguments=(value); end
|
||||
def log_arguments?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods; end
|
||||
end
|
||||
21
sorbet/rbi/dsl/active_job/queue_adapter.rbi
generated
Normal file
21
sorbet/rbi/dsl/active_job/queue_adapter.rbi
generated
Normal file
@@ -0,0 +1,21 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveJob::QueueAdapter`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveJob::QueueAdapter`.
|
||||
|
||||
|
||||
module ActiveJob::QueueAdapter
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _queue_adapter; end
|
||||
def _queue_adapter=(value); end
|
||||
def _queue_adapter_name; end
|
||||
def _queue_adapter_name=(value); end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods; end
|
||||
end
|
||||
30
sorbet/rbi/dsl/active_job/queue_name.rbi
generated
Normal file
30
sorbet/rbi/dsl/active_job/queue_name.rbi
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveJob::QueueName`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveJob::QueueName`.
|
||||
|
||||
|
||||
module ActiveJob::QueueName
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def queue_name; end
|
||||
def queue_name=(value); end
|
||||
def queue_name?; end
|
||||
def queue_name_delimiter; end
|
||||
def queue_name_delimiter=(value); end
|
||||
def queue_name_delimiter?; end
|
||||
def queue_name_prefix; end
|
||||
def queue_name_prefix=(value); end
|
||||
def queue_name_prefix?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def queue_name_prefix; end
|
||||
def queue_name_prefix=(value); end
|
||||
def queue_name_prefix?; end
|
||||
end
|
||||
end
|
||||
20
sorbet/rbi/dsl/active_job/queue_priority.rbi
generated
Normal file
20
sorbet/rbi/dsl/active_job/queue_priority.rbi
generated
Normal file
@@ -0,0 +1,20 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveJob::QueuePriority`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveJob::QueuePriority`.
|
||||
|
||||
|
||||
module ActiveJob::QueuePriority
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def priority; end
|
||||
def priority=(value); end
|
||||
def priority?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods; end
|
||||
end
|
||||
19
sorbet/rbi/dsl/active_job/test_helper/test_queue_adapter.rbi
generated
Normal file
19
sorbet/rbi/dsl/active_job/test_helper/test_queue_adapter.rbi
generated
Normal file
@@ -0,0 +1,19 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveJob::TestHelper::TestQueueAdapter`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveJob::TestHelper::TestQueueAdapter`.
|
||||
|
||||
|
||||
module ActiveJob::TestHelper::TestQueueAdapter
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _test_adapter; end
|
||||
def _test_adapter=(value); end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods; end
|
||||
end
|
||||
34
sorbet/rbi/dsl/active_model/api.rbi
generated
Normal file
34
sorbet/rbi/dsl/active_model/api.rbi
generated
Normal file
@@ -0,0 +1,34 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveModel::API`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveModel::API`.
|
||||
|
||||
|
||||
module ActiveModel::API
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActiveModel::Validations::ClassMethods
|
||||
mixes_in_class_methods ::ActiveModel::Conversion::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def __callbacks; end
|
||||
def __callbacks=(value); end
|
||||
def __callbacks?; end
|
||||
def _validators; end
|
||||
def _validators=(value); end
|
||||
def _validators?; end
|
||||
def param_delimiter; end
|
||||
def param_delimiter=(value); end
|
||||
def param_delimiter?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def __callbacks; end
|
||||
def __callbacks?; end
|
||||
def _validators; end
|
||||
def _validators?; end
|
||||
def param_delimiter=(value); end
|
||||
end
|
||||
end
|
||||
28
sorbet/rbi/dsl/active_model/attribute_methods.rbi
generated
Normal file
28
sorbet/rbi/dsl/active_model/attribute_methods.rbi
generated
Normal file
@@ -0,0 +1,28 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveModel::AttributeMethods`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveModel::AttributeMethods`.
|
||||
|
||||
|
||||
module ActiveModel::AttributeMethods
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def attribute_aliases; end
|
||||
def attribute_aliases=(value); end
|
||||
def attribute_aliases?; end
|
||||
def attribute_method_patterns; end
|
||||
def attribute_method_patterns=(value); end
|
||||
def attribute_method_patterns?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def attribute_aliases; end
|
||||
def attribute_aliases?; end
|
||||
def attribute_method_patterns; end
|
||||
def attribute_method_patterns?; end
|
||||
end
|
||||
end
|
||||
30
sorbet/rbi/dsl/active_model/attributes.rbi
generated
Normal file
30
sorbet/rbi/dsl/active_model/attributes.rbi
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveModel::Attributes`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveModel::Attributes`.
|
||||
|
||||
|
||||
module ActiveModel::Attributes
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActiveModel::AttributeRegistration::ClassMethods
|
||||
mixes_in_class_methods ::ActiveModel::AttributeMethods::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def attribute_aliases; end
|
||||
def attribute_aliases=(value); end
|
||||
def attribute_aliases?; end
|
||||
def attribute_method_patterns; end
|
||||
def attribute_method_patterns=(value); end
|
||||
def attribute_method_patterns?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def attribute_aliases; end
|
||||
def attribute_aliases?; end
|
||||
def attribute_method_patterns; end
|
||||
def attribute_method_patterns?; end
|
||||
end
|
||||
end
|
||||
22
sorbet/rbi/dsl/active_model/conversion.rbi
generated
Normal file
22
sorbet/rbi/dsl/active_model/conversion.rbi
generated
Normal file
@@ -0,0 +1,22 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveModel::Conversion`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveModel::Conversion`.
|
||||
|
||||
|
||||
module ActiveModel::Conversion
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def param_delimiter; end
|
||||
def param_delimiter=(value); end
|
||||
def param_delimiter?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def param_delimiter=(value); end
|
||||
end
|
||||
end
|
||||
29
sorbet/rbi/dsl/active_model/dirty.rbi
generated
Normal file
29
sorbet/rbi/dsl/active_model/dirty.rbi
generated
Normal file
@@ -0,0 +1,29 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveModel::Dirty`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveModel::Dirty`.
|
||||
|
||||
|
||||
module ActiveModel::Dirty
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActiveModel::AttributeMethods::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def attribute_aliases; end
|
||||
def attribute_aliases=(value); end
|
||||
def attribute_aliases?; end
|
||||
def attribute_method_patterns; end
|
||||
def attribute_method_patterns=(value); end
|
||||
def attribute_method_patterns?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def attribute_aliases; end
|
||||
def attribute_aliases?; end
|
||||
def attribute_method_patterns; end
|
||||
def attribute_method_patterns?; end
|
||||
end
|
||||
end
|
||||
34
sorbet/rbi/dsl/active_model/model.rbi
generated
Normal file
34
sorbet/rbi/dsl/active_model/model.rbi
generated
Normal file
@@ -0,0 +1,34 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveModel::Model`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveModel::Model`.
|
||||
|
||||
|
||||
module ActiveModel::Model
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActiveModel::Validations::ClassMethods
|
||||
mixes_in_class_methods ::ActiveModel::Conversion::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def __callbacks; end
|
||||
def __callbacks=(value); end
|
||||
def __callbacks?; end
|
||||
def _validators; end
|
||||
def _validators=(value); end
|
||||
def _validators?; end
|
||||
def param_delimiter; end
|
||||
def param_delimiter=(value); end
|
||||
def param_delimiter?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def __callbacks; end
|
||||
def __callbacks?; end
|
||||
def _validators; end
|
||||
def _validators?; end
|
||||
def param_delimiter=(value); end
|
||||
end
|
||||
end
|
||||
23
sorbet/rbi/dsl/active_model/serializers/json.rbi
generated
Normal file
23
sorbet/rbi/dsl/active_model/serializers/json.rbi
generated
Normal file
@@ -0,0 +1,23 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveModel::Serializers::JSON`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveModel::Serializers::JSON`.
|
||||
|
||||
|
||||
module ActiveModel::Serializers::JSON
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def include_root_in_json; end
|
||||
def include_root_in_json=(value); end
|
||||
def include_root_in_json?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def include_root_in_json; end
|
||||
def include_root_in_json?; end
|
||||
end
|
||||
end
|
||||
28
sorbet/rbi/dsl/active_model/validations.rbi
generated
Normal file
28
sorbet/rbi/dsl/active_model/validations.rbi
generated
Normal file
@@ -0,0 +1,28 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveModel::Validations`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveModel::Validations`.
|
||||
|
||||
|
||||
module ActiveModel::Validations
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def __callbacks; end
|
||||
def __callbacks=(value); end
|
||||
def __callbacks?; end
|
||||
def _validators; end
|
||||
def _validators=(value); end
|
||||
def _validators?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def __callbacks; end
|
||||
def __callbacks?; end
|
||||
def _validators; end
|
||||
def _validators?; end
|
||||
end
|
||||
end
|
||||
23
sorbet/rbi/dsl/active_model/validations/callbacks.rbi
generated
Normal file
23
sorbet/rbi/dsl/active_model/validations/callbacks.rbi
generated
Normal file
@@ -0,0 +1,23 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveModel::Validations::Callbacks`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveModel::Validations::Callbacks`.
|
||||
|
||||
|
||||
module ActiveModel::Validations::Callbacks
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def __callbacks; end
|
||||
def __callbacks=(value); end
|
||||
def __callbacks?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def __callbacks; end
|
||||
def __callbacks?; end
|
||||
end
|
||||
end
|
||||
57
sorbet/rbi/dsl/active_record/attribute_methods.rbi
generated
Normal file
57
sorbet/rbi/dsl/active_record/attribute_methods.rbi
generated
Normal file
@@ -0,0 +1,57 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveRecord::AttributeMethods`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveRecord::AttributeMethods`.
|
||||
|
||||
|
||||
module ActiveRecord::AttributeMethods
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActiveModel::AttributeMethods::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def attribute_aliases; end
|
||||
def attribute_aliases=(value); end
|
||||
def attribute_aliases?; end
|
||||
def attribute_method_patterns; end
|
||||
def attribute_method_patterns=(value); end
|
||||
def attribute_method_patterns?; end
|
||||
def default_column_serializer; end
|
||||
def default_column_serializer=(value); end
|
||||
def default_column_serializer?; end
|
||||
def partial_inserts; end
|
||||
def partial_inserts=(value); end
|
||||
def partial_inserts?; end
|
||||
def partial_updates; end
|
||||
def partial_updates=(value); end
|
||||
def partial_updates?; end
|
||||
def skip_time_zone_conversion_for_attributes; end
|
||||
def skip_time_zone_conversion_for_attributes=(value); end
|
||||
def skip_time_zone_conversion_for_attributes?; end
|
||||
def time_zone_aware_attributes; end
|
||||
def time_zone_aware_attributes=(value); end
|
||||
def time_zone_aware_attributes?; end
|
||||
def time_zone_aware_types; end
|
||||
def time_zone_aware_types=(value); end
|
||||
def time_zone_aware_types?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def attribute_aliases; end
|
||||
def attribute_aliases?; end
|
||||
def attribute_method_patterns; end
|
||||
def attribute_method_patterns?; end
|
||||
def partial_inserts; end
|
||||
def partial_inserts?; end
|
||||
def partial_updates; end
|
||||
def partial_updates?; end
|
||||
def skip_time_zone_conversion_for_attributes; end
|
||||
def skip_time_zone_conversion_for_attributes?; end
|
||||
def time_zone_aware_attributes; end
|
||||
def time_zone_aware_attributes?; end
|
||||
def time_zone_aware_types; end
|
||||
def time_zone_aware_types?; end
|
||||
end
|
||||
end
|
||||
39
sorbet/rbi/dsl/active_record/attribute_methods/dirty.rbi
generated
Normal file
39
sorbet/rbi/dsl/active_record/attribute_methods/dirty.rbi
generated
Normal file
@@ -0,0 +1,39 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveRecord::AttributeMethods::Dirty`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveRecord::AttributeMethods::Dirty`.
|
||||
|
||||
|
||||
module ActiveRecord::AttributeMethods::Dirty
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods ::ActiveModel::AttributeMethods::ClassMethods
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def attribute_aliases; end
|
||||
def attribute_aliases=(value); end
|
||||
def attribute_aliases?; end
|
||||
def attribute_method_patterns; end
|
||||
def attribute_method_patterns=(value); end
|
||||
def attribute_method_patterns?; end
|
||||
def partial_inserts; end
|
||||
def partial_inserts=(value); end
|
||||
def partial_inserts?; end
|
||||
def partial_updates; end
|
||||
def partial_updates=(value); end
|
||||
def partial_updates?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def attribute_aliases; end
|
||||
def attribute_aliases?; end
|
||||
def attribute_method_patterns; end
|
||||
def attribute_method_patterns?; end
|
||||
def partial_inserts; end
|
||||
def partial_inserts?; end
|
||||
def partial_updates; end
|
||||
def partial_updates?; end
|
||||
end
|
||||
end
|
||||
20
sorbet/rbi/dsl/active_record/attribute_methods/serialization.rbi
generated
Normal file
20
sorbet/rbi/dsl/active_record/attribute_methods/serialization.rbi
generated
Normal file
@@ -0,0 +1,20 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveRecord::AttributeMethods::Serialization`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveRecord::AttributeMethods::Serialization`.
|
||||
|
||||
|
||||
module ActiveRecord::AttributeMethods::Serialization
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def default_column_serializer; end
|
||||
def default_column_serializer=(value); end
|
||||
def default_column_serializer?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods; end
|
||||
end
|
||||
33
sorbet/rbi/dsl/active_record/attribute_methods/time_zone_conversion.rbi
generated
Normal file
33
sorbet/rbi/dsl/active_record/attribute_methods/time_zone_conversion.rbi
generated
Normal file
@@ -0,0 +1,33 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveRecord::AttributeMethods::TimeZoneConversion`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveRecord::AttributeMethods::TimeZoneConversion`.
|
||||
|
||||
|
||||
module ActiveRecord::AttributeMethods::TimeZoneConversion
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def skip_time_zone_conversion_for_attributes; end
|
||||
def skip_time_zone_conversion_for_attributes=(value); end
|
||||
def skip_time_zone_conversion_for_attributes?; end
|
||||
def time_zone_aware_attributes; end
|
||||
def time_zone_aware_attributes=(value); end
|
||||
def time_zone_aware_attributes?; end
|
||||
def time_zone_aware_types; end
|
||||
def time_zone_aware_types=(value); end
|
||||
def time_zone_aware_types?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def skip_time_zone_conversion_for_attributes; end
|
||||
def skip_time_zone_conversion_for_attributes?; end
|
||||
def time_zone_aware_attributes; end
|
||||
def time_zone_aware_attributes?; end
|
||||
def time_zone_aware_types; end
|
||||
def time_zone_aware_types?; end
|
||||
end
|
||||
end
|
||||
10
sorbet/rbi/dsl/active_record/attributes.rbi
generated
Normal file
10
sorbet/rbi/dsl/active_record/attributes.rbi
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveRecord::Attributes`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveRecord::Attributes`.
|
||||
|
||||
|
||||
module ActiveRecord::Attributes
|
||||
mixes_in_class_methods ::ActiveModel::AttributeRegistration::ClassMethods
|
||||
end
|
||||
23
sorbet/rbi/dsl/active_record/callbacks.rbi
generated
Normal file
23
sorbet/rbi/dsl/active_record/callbacks.rbi
generated
Normal file
@@ -0,0 +1,23 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveRecord::Callbacks`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveRecord::Callbacks`.
|
||||
|
||||
|
||||
module ActiveRecord::Callbacks
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def __callbacks; end
|
||||
def __callbacks=(value); end
|
||||
def __callbacks?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def __callbacks; end
|
||||
def __callbacks?; end
|
||||
end
|
||||
end
|
||||
65
sorbet/rbi/dsl/active_record/core.rbi
generated
Normal file
65
sorbet/rbi/dsl/active_record/core.rbi
generated
Normal file
@@ -0,0 +1,65 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveRecord::Core`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveRecord::Core`.
|
||||
|
||||
|
||||
module ActiveRecord::Core
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _destroy_association_async_job; end
|
||||
def _destroy_association_async_job=(value); end
|
||||
def _destroy_association_async_job?; end
|
||||
def attributes_for_inspect; end
|
||||
def attributes_for_inspect=(value); end
|
||||
def attributes_for_inspect?; end
|
||||
def belongs_to_required_by_default; end
|
||||
def belongs_to_required_by_default=(value); end
|
||||
def belongs_to_required_by_default?; end
|
||||
def default_connection_handler; end
|
||||
def default_connection_handler=(value); end
|
||||
def default_connection_handler?; end
|
||||
def default_role; end
|
||||
def default_role=(value); end
|
||||
def default_role?; end
|
||||
def default_shard; end
|
||||
def default_shard=(value); end
|
||||
def default_shard?; end
|
||||
def destroy_association_async_batch_size; end
|
||||
def destroy_association_async_batch_size=(value); end
|
||||
def enumerate_columns_in_select_statements; end
|
||||
def enumerate_columns_in_select_statements=(value); end
|
||||
def enumerate_columns_in_select_statements?; end
|
||||
def has_many_inversing; end
|
||||
def has_many_inversing=(value); end
|
||||
def has_many_inversing?; end
|
||||
def logger; end
|
||||
def logger=(value); end
|
||||
def logger?; end
|
||||
def run_commit_callbacks_on_first_saved_instances_in_transaction; end
|
||||
def run_commit_callbacks_on_first_saved_instances_in_transaction=(value); end
|
||||
def run_commit_callbacks_on_first_saved_instances_in_transaction?; end
|
||||
def shard_selector; end
|
||||
def shard_selector=(value); end
|
||||
def shard_selector?; end
|
||||
def strict_loading_by_default; end
|
||||
def strict_loading_by_default=(value); end
|
||||
def strict_loading_by_default?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def default_connection_handler; end
|
||||
def default_connection_handler?; end
|
||||
def default_role; end
|
||||
def default_role?; end
|
||||
def default_shard; end
|
||||
def default_shard?; end
|
||||
def destroy_association_async_batch_size; end
|
||||
def logger; end
|
||||
def logger?; end
|
||||
end
|
||||
end
|
||||
26
sorbet/rbi/dsl/active_record/counter_cache.rbi
generated
Normal file
26
sorbet/rbi/dsl/active_record/counter_cache.rbi
generated
Normal file
@@ -0,0 +1,26 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveRecord::CounterCache`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveRecord::CounterCache`.
|
||||
|
||||
|
||||
module ActiveRecord::CounterCache
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def _counter_cache_columns; end
|
||||
def _counter_cache_columns=(value); end
|
||||
def _counter_cache_columns?; end
|
||||
def counter_cached_association_names; end
|
||||
def counter_cached_association_names=(value); end
|
||||
def counter_cached_association_names?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def counter_cached_association_names; end
|
||||
def counter_cached_association_names?; end
|
||||
end
|
||||
end
|
||||
24
sorbet/rbi/dsl/active_record/encryption/encryptable_record.rbi
generated
Normal file
24
sorbet/rbi/dsl/active_record/encryption/encryptable_record.rbi
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveRecord::Encryption::EncryptableRecord`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveRecord::Encryption::EncryptableRecord`.
|
||||
|
||||
|
||||
module ActiveRecord::Encryption::EncryptableRecord
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def encrypted_attributes; end
|
||||
def encrypted_attributes=(value); end
|
||||
def encrypted_attributes?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def encrypted_attributes; end
|
||||
def encrypted_attributes=(value); end
|
||||
def encrypted_attributes?; end
|
||||
end
|
||||
end
|
||||
28
sorbet/rbi/dsl/active_record/inheritance.rbi
generated
Normal file
28
sorbet/rbi/dsl/active_record/inheritance.rbi
generated
Normal file
@@ -0,0 +1,28 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for dynamic methods in `ActiveRecord::Inheritance`.
|
||||
# Please instead update this file by running `bin/tapioca dsl ActiveRecord::Inheritance`.
|
||||
|
||||
|
||||
module ActiveRecord::Inheritance
|
||||
include GeneratedInstanceMethods
|
||||
|
||||
mixes_in_class_methods GeneratedClassMethods
|
||||
|
||||
module GeneratedClassMethods
|
||||
def store_full_class_name; end
|
||||
def store_full_class_name=(value); end
|
||||
def store_full_class_name?; end
|
||||
def store_full_sti_class; end
|
||||
def store_full_sti_class=(value); end
|
||||
def store_full_sti_class?; end
|
||||
end
|
||||
|
||||
module GeneratedInstanceMethods
|
||||
def store_full_class_name; end
|
||||
def store_full_class_name?; end
|
||||
def store_full_sti_class; end
|
||||
def store_full_sti_class?; end
|
||||
end
|
||||
end
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user