From 0a454cd73e9644b154d72b573bc58451010f0e1a Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Sun, 4 Feb 2007 18:33:54 +0000 Subject: fix #write_inheritable_attribute bug that crept in git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6111 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/active_support/core_ext/class/inheritable_attributes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb') diff --git a/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb b/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb index d8283760b9..b39e316423 100644 --- a/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb +++ b/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb @@ -94,7 +94,7 @@ class Class # :nodoc: def write_inheritable_attribute(key, value) if inheritable_attributes.equal?(EMPTY_INHERITABLE_ATTRIBUTES) - inheritable_attributes = {} + @inheritable_attributes = {} end inheritable_attributes[key] = value end -- cgit v1.2.3