aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-06-27 18:15:28 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-06-27 18:15:28 -0700
commit4ec47cac10e4f7db001b108828e02c3d389dfb64 (patch)
tree6d3be2a4e8023a0e2c66d594338bb20f86026625
parent9152126110301730e4a5ff57100cdfb10fa9c9d3 (diff)
downloadrails-4ec47cac10e4f7db001b108828e02c3d389dfb64.tar.gz
rails-4ec47cac10e4f7db001b108828e02c3d389dfb64.tar.bz2
rails-4ec47cac10e4f7db001b108828e02c3d389dfb64.zip
let strings be converted to symbols inside the interpreter
-rw-r--r--activerecord/lib/active_record/base.rb4
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