Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

let strings be converted to symbols inside the interpreter

  • Loading branch information...
commit 4ec47cac10e4f7db001b108828e02c3d389dfb64 1 parent 9152126
@tenderlove tenderlove authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/base.rb
View
4 activerecord/lib/active_record/base.rb
@@ -1210,11 +1210,11 @@ def with_exclusive_scope(method_scoping = {}, &block)
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
Please sign in to comment.
Something went wrong with that request. Please try again.