Methods
- O
-
Instance Public methods
on_encrypted_attribute_declared(&block)
Link
Register callback to be invoked when an encrypted attribute is declared.
Example¶ ↑
ActiveRecord::Encryption.on_encrypted_attribute_declared do |klass, attribute_name|
...
end
Source:
show
|
on GitHub
def on_encrypted_attribute_declared(&block)
self.encrypted_attribute_declaration_listeners ||= Concurrent::Array.new
self.encrypted_attribute_declaration_listeners << block
end