method
encrypt
v8.1.1 -
Show latest stable
- Class:
ActiveRecord
encrypt()public
Encrypts all the encryptable attributes and saves the changes.
# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 166
def encrypt
encrypt_attributes if has_encrypted_attributes?
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=
- default_transaction_isolation_level
- default_transaction_isolation_level=
- deprecated_associations_options
- deprecated_associations_options=
- 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=
- message_verifiers
- migration_strategy
- permanent_connection_checkout=
- protocol_adapters
- queues
- raise_int_wider_than_64bit
- schema_cache_ignored_table?
- schema_cache_ignored_tables
- schema_format
- schema_versions_formatter
- timestamped_migrations
- use_yaml_unsafe_load
- validate_migration_timestamps
- verbose_query_logs
- verify_foreign_keys_for_fixtures
- version
- with_transaction_isolation_level
- 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