aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/per_thread_registry.rb
Commit message (Collapse)AuthorAgeFilesLines
* use define_singleton_method instead of class_evalFrancesco Rodriguez2013-04-131-4/+2
|
* Add :nodoc: mark to PerThreadRegistry#method_missing [ci skip]Francesco Rodriguez2013-04-131-1/+1
|
* hides the per thread registry instance, and caches singleton methodsXavier Noria2013-04-131-19/+29
| | | | | | | | | | | | Existing code was delegating to the instance with delegate macro calls, or invoking the instance method to reach the object and call its instance methods. But the point is to have a clean class-level interface where the thread local instance is hidden in the implementation. References #11c6973. References #10198.
* complete rewrite of the documentation of AS::PerThreadRegistryXavier Noria2013-04-131-21/+24
| | | | | | | | | | * It focuses on how to use it. * Removes some ambigueties in the original docs about whether the state is stored in the class. * Documents it provides class-level accessors via method_missing. * Documents that if the extended class has an initializer, it must accept no arguments.
* Using public send instead of send for the PerThreadRegistry module.wangjohn2013-04-101-1/+1
| | | | Prevents you from accidentally calling a protected method.
* Creating a module so that per thread registries can be easily created aswangjohn2013-04-091-0/+41
thread local variables.