instance method
without_default_proc
Ruby on Rails 6.0.6.1
Since v5.0.7.2 Last seen in v6.0.6.1 Private — implementation detail, not part of the public APISignature
without_default_proc(hash)
No documentation comment.
Parameters
-
hashreq
Source
# File activemodel/lib/active_model/errors.rb, line 548
def without_default_proc(hash)
hash.dup.tap do |new_h|
new_h.default_proc = nil
end
end
Defined in activemodel/lib/active_model/errors.rb line 548
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Errors