mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
4f2c25d39d
The current implentation of `thread_mattr_accessor` is setting differently-named thread variables when defining class and instance writer methods, so the method isn't working as documented: Account.user = "DHH" Account.user # => "DHH" Account.new.user # => nil a = Account.new a.user = "ABC" # => "ABC" a.class.user # => "DHH" At this point `:attr_Account_user` and `:attr_Class_user` thread-local variables have been created. Modify the reader and writer methods to use the class name instead of 'Class'. |
||
---|---|---|
.. | ||
anonymous_test.rb | ||
attr_internal_test.rb | ||
attribute_accessor_per_thread_test.rb | ||
attribute_accessor_test.rb | ||
attribute_aliasing_test.rb | ||
concerning_test.rb | ||
qualified_const_test.rb | ||
reachable_test.rb | ||
remove_method_test.rb |