diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-27 18:15:28 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-27 18:15:28 -0700 |
commit | 4ec47cac10e4f7db001b108828e02c3d389dfb64 (patch) | |
tree | 6d3be2a4e8023a0e2c66d594338bb20f86026625 /activerecord/lib/active_record | |
parent | 9152126110301730e4a5ff57100cdfb10fa9c9d3 (diff) | |
download | rails-4ec47cac10e4f7db001b108828e02c3d389dfb64.tar.gz rails-4ec47cac10e4f7db001b108828e02c3d389dfb64.tar.bz2 rails-4ec47cac10e4f7db001b108828e02c3d389dfb64.zip |
let strings be converted to symbols inside the interpreter
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index ce7046760f..6a964133e9 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1210,11 +1210,11 @@ MSG end def current_scope #:nodoc: - Thread.current[:"#{self}_current_scope"] + Thread.current["#{self}_current_scope"] end def current_scope=(scope) #:nodoc: - Thread.current[:"#{self}_current_scope"] = scope + Thread.current["#{self}_current_scope"] = scope end # Use this macro in your model to set a default scope for all operations on |