aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/support/class_inheritable_attributes.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/support/class_inheritable_attributes.rb b/actionpack/lib/action_controller/support/class_inheritable_attributes.rb
index 7f061fdf1b..39312e8d5b 100644
--- a/actionpack/lib/action_controller/support/class_inheritable_attributes.rb
+++ b/actionpack/lib/action_controller/support/class_inheritable_attributes.rb
@@ -28,6 +28,10 @@ module ClassInheritableAttributes # :nodoc:
inheritable_attributes[key]
end
+ def reset_inheritable_attributes
+ inheritable_attributes.clear
+ end
+
private
def inherited(child)
@@classes[child] = inheritable_attributes.dup