Skip to content

Commit f189e4c

Browse files
authored
Merge pull request rails#42733 from okuramasafumi/small-improvements-on-active-model
Small improvements on active model
2 parents 317547e + 67adc94 commit f189e4c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

activemodel/lib/active_model/errors.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ def deprecation_rename_warning(old_method_name, new_method_name)
604604
end
605605
end
606606

607-
class DeprecationHandlingMessageHash < SimpleDelegator
607+
class DeprecationHandlingMessageHash < SimpleDelegator # :nodoc:
608608
def initialize(errors)
609609
@errors = errors
610610
super(prepare_content)
@@ -643,7 +643,7 @@ def prepare_content
643643
end
644644
end
645645

646-
class DeprecationHandlingMessageArray < SimpleDelegator
646+
class DeprecationHandlingMessageArray < SimpleDelegator # :nodoc:
647647
def initialize(content, errors, attribute)
648648
@errors = errors
649649
@attribute = attribute
@@ -665,7 +665,7 @@ def clear
665665
end
666666
end
667667

668-
class DeprecationHandlingDetailsHash < SimpleDelegator
668+
class DeprecationHandlingDetailsHash < SimpleDelegator # :nodoc:
669669
def initialize(details)
670670
details.default = []
671671
details.freeze

activemodel/lib/active_model/naming.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require "active_support/core_ext/hash/except"
44
require "active_support/core_ext/module/introspection"
55
require "active_support/core_ext/module/redefine_method"
6+
require "active_support/core_ext/module/delegation"
67

78
module ActiveModel
89
class Name

0 commit comments

Comments
 (0)