instance method
resolve_defaults
Ruby on Rails 8.1.2
Since v7.2.3 PrivateSignature
resolve_defaults()
No documentation comment.
Source
# File activesupport/lib/active_support/current_attributes.rb, line 235
def resolve_defaults
defaults.each_with_object({}) do |(key, value), result|
if value != NOT_SET
result[key] = Proc === value ? value.call : value.dup
end
end
end
Defined in activesupport/lib/active_support/current_attributes.rb line 235
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::CurrentAttributes