1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test/core_ext/module
Michael Ryan 4f2c25d39d Fix thread_mattr_accessor thread-local variable naming
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'.
2016-03-11 06:54:00 -05:00
..
anonymous_test.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
attr_internal_test.rb use AS::TestCase as the base class 2012-01-05 17:12:46 -08:00
attribute_accessor_per_thread_test.rb Fix thread_mattr_accessor thread-local variable naming 2016-03-11 06:54:00 -05:00
attribute_accessor_test.rb Regex fix for mattr_accessor validation 2015-10-01 21:27:58 +03:00
attribute_aliasing_test.rb use AS::TestCase as the base class 2012-01-05 17:12:46 -08:00
concerning_test.rb Introduce Concern#class_methods and Kernel#concern 2014-02-23 12:06:23 -07:00
qualified_const_test.rb Don't leak Object constants in core_ext/module/qualified_const 2015-12-16 18:10:50 +01:00
reachable_test.rb Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
remove_method_test.rb Make Module#redefine_method to keep method visibility 2015-10-26 19:40:46 +09:00