instance method
deep_transform
Ruby on Rails 7.0.10
Since v7.0.10 PrivateSignature
deep_transform(hash)
No documentation comment.
Parameters
-
hashreq
Source
# File activesupport/lib/active_support/encrypted_configuration.rb, line 68
def deep_transform(hash)
return hash unless hash.is_a?(Hash)
h = ActiveSupport::InheritableOptions.new
hash.each do |k, v|
h[k] = deep_transform(v)
end
h
end
Defined in activesupport/lib/active_support/encrypted_configuration.rb line 68
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::EncryptedConfiguration