instance method
normalize_detail
Ruby on Rails 5.2.8.1
Since v5.2.8.1 Last seen in v6.0.6 PrivateAvailable in: v5.2.8.1 v6.0.6
Signature
normalize_detail(message, options)
No documentation comment.
Parameters
-
messagereq -
optionsreq
Source
# File activemodel/lib/active_model/errors.rb, line 460
def normalize_detail(message, options)
{ error: message }.merge(options.except(*CALLBACKS_OPTIONS + MESSAGE_OPTIONS))
end
Defined in activemodel/lib/active_model/errors.rb line 460
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Errors