From 67adc94e009c0fa0f771d357eec4ead792a6d918 Mon Sep 17 00:00:00 2001 From: OKURA Masafumi Date: Thu, 8 Jul 2021 23:31:17 +0900 Subject: [PATCH] Add `:nodoc` to `ActiveModel::Errors` Three classes in `active_model/errors` look internal only. --- activemodel/lib/active_model/errors.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb index 10a8100601..2046ee2d21 100644 --- a/activemodel/lib/active_model/errors.rb +++ b/activemodel/lib/active_model/errors.rb @@ -604,7 +604,7 @@ module ActiveModel end end - class DeprecationHandlingMessageHash < SimpleDelegator + class DeprecationHandlingMessageHash < SimpleDelegator # :nodoc: def initialize(errors) @errors = errors super(prepare_content) @@ -643,7 +643,7 @@ module ActiveModel end end - class DeprecationHandlingMessageArray < SimpleDelegator + class DeprecationHandlingMessageArray < SimpleDelegator # :nodoc: def initialize(content, errors, attribute) @errors = errors @attribute = attribute @@ -665,7 +665,7 @@ module ActiveModel end end - class DeprecationHandlingDetailsHash < SimpleDelegator + class DeprecationHandlingDetailsHash < SimpleDelegator # :nodoc: def initialize(details) details.default = [] details.freeze