1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add :nodoc to ActiveModel::Errors

Three classes in `active_model/errors` look internal only.
This commit is contained in:
OKURA Masafumi 2021-07-08 23:31:17 +09:00
parent f96929ae5f
commit 67adc94e00

View file

@ -604,7 +604,7 @@ module ActiveModel
end end
end end
class DeprecationHandlingMessageHash < SimpleDelegator class DeprecationHandlingMessageHash < SimpleDelegator # :nodoc:
def initialize(errors) def initialize(errors)
@errors = errors @errors = errors
super(prepare_content) super(prepare_content)
@ -643,7 +643,7 @@ module ActiveModel
end end
end end
class DeprecationHandlingMessageArray < SimpleDelegator class DeprecationHandlingMessageArray < SimpleDelegator # :nodoc:
def initialize(content, errors, attribute) def initialize(content, errors, attribute)
@errors = errors @errors = errors
@attribute = attribute @attribute = attribute
@ -665,7 +665,7 @@ module ActiveModel
end end
end end
class DeprecationHandlingDetailsHash < SimpleDelegator class DeprecationHandlingDetailsHash < SimpleDelegator # :nodoc:
def initialize(details) def initialize(details)
details.default = [] details.default = []
details.freeze details.freeze