File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
activemodel/lib/active_model Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ def pending_attribute_modifications
69
69
end
70
70
71
71
def apply_pending_attribute_modifications ( attribute_set )
72
- superclass . send ( __method__ , attribute_set ) if superclass . respond_to? ( __method__ , true )
72
+ if superclass . respond_to? ( :apply_pending_attribute_modifications , true )
73
+ superclass . send ( :apply_pending_attribute_modifications , attribute_set )
74
+ end
73
75
74
76
pending_attribute_modifications . each do |modification |
75
77
modification . apply_to ( attribute_set )
@@ -78,7 +80,7 @@ def apply_pending_attribute_modifications(attribute_set)
78
80
79
81
def reset_default_attributes
80
82
reset_default_attributes!
81
- subclasses . each { |subclass | subclass . send ( __method__ ) }
83
+ subclasses . each { |subclass | subclass . send ( :reset_default_attributes ) }
82
84
end
83
85
84
86
def reset_default_attributes!
You can’t perform that action at this time.
0 commit comments