method
permanent_connection_checkout=
rails latest stable - Class:
ActiveRecord
Method not available on this version
This method is only available on newer versions. The first available version (v8.0.0) is shown here.
permanent_connection_checkout=(value)public
Defines whether +ActiveRecord::Base.connection+ is allowed, deprecated, or entirely disallowed.
# File activerecord/lib/active_record.rb, line 314
def self.permanent_connection_checkout=(value)
unless [true, :deprecated, :disallowed].include?(value)
raise ArgumentError, "permanent_connection_checkout must be one of: `true`, `:deprecated` or `:disallowed`"
end
@permanent_connection_checkout = value
end Related methods
- Instance methods
- ciphertext_for
- decrypt
- encrypt
- encrypted_attribute?
- Class methods
- action_on_strict_loading_violation
- after_all_transactions_commit
- all_open_transactions
- async_query_executor
- db_warnings_action
- db_warnings_action=
- db_warnings_ignore
- default_timezone=
- deprecator
- disconnect_all!
- dump_schema_after_migration
- dump_schemas
- eager_load!
- error_on_ignored_order
- gem_version
- generate_secure_token_on
- global_executor_concurrency
- global_executor_concurrency=
- global_thread_pool_async_query_executor
- lazily_load_schema_cache
- marshalling_format_version
- marshalling_format_version=
- migration_strategy
- permanent_connection_checkout=
- protocol_adapters
- queues
- raise_int_wider_than_64bit
- schema_cache_ignored_table?
- schema_cache_ignored_tables
- schema_format
- timestamped_migrations
- use_yaml_unsafe_load
- validate_migration_timestamps
- verbose_query_logs
- verify_foreign_keys_for_fixtures
- version
- yaml_column_permitted_classes
- Private methods
-
_create -
_create! -
_create_record -
_new -
build_decrypt_attribute_assignments -
build_encrypt_attribute_assignments -
cant_modify_encrypted_attributes_when_frozen -
decrypt_attributes -
encrypt_attributes -
exec_queries -
has_encrypted_attributes? -
validate_encryption_allowed