Sha256: 70b01fd181383e756186fab998c4db34eae3e2adfc64f7d174d56c878e1dab19

Contents?: true

Size: 1.36 KB

Versions: 2

Compression:

Stored size: 1.36 KB

Contents

# This file is autogenerated. Do not edit it by hand. Regenerate it with:
#   srb rbi sorbet-typed
#
# If you would like to make changes to this file, great! Please upstream any changes you make here:
#
#   https://github.com/sorbet/sorbet-typed/edit/master/lib/activerecord/all/sanitization.rbi
#
# typed: false

# https://github.com/rails/rails/blob/5-2-stable/activerecord/lib/active_record/sanitization.rb
module ActiveRecord::Sanitization::ClassMethods
  sig { params(condition: T.any(T.nilable(String), T::Array[T.untyped])).returns(T.nilable(String)) }
  def sanitize_sql_for_conditions(condition)
  end
  alias :sanitize_sql :sanitize_sql_for_conditions

  sig { params(assignments: T.any(T::Array[T.untyped], T::Hash[T.untyped, T.untyped], String), default_table_name: String).returns(String) }
  def sanitize_sql_for_assignment(assignments, default_table_name)
  end

  sig { params(condition: T.any(T::Array[T.untyped], String)).returns(String) }
  def sanitize_sql_for_order(condition)
  end

  sig { params(attrs: T::Hash[T.untyped, T.untyped], table: String).returns(String) }
  def sanitize_sql_hash_for_assignment(attrs, table)
  end

  sig { params(string: String, escape_character: String).returns(String) }
  def sanitize_sql_like(string, escape_character = "\\")
  end

  sig { params(ary: T::Array[T.untyped]).returns(String) }
  def sanitize_sql_array(ary)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lazy_migrate-0.3.0 sorbet/rbi/sorbet-typed/lib/activerecord/all/sanitization.rbi
lazy_migrate-0.2.0 sorbet/rbi/sorbet-typed/lib/activerecord/all/sanitization.rbi