let strings be converted to symbols inside the interpreter
This commit is contained in:
parent
9152126110
commit
4ec47cac10
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user