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
|
end
|
||||||
|
|
||||||
def current_scope #:nodoc:
|
def current_scope #:nodoc:
|
||||||
Thread.current[:"#{self}_current_scope"]
|
Thread.current["#{self}_current_scope"]
|
||||||
end
|
end
|
||||||
|
|
||||||
def current_scope=(scope) #:nodoc:
|
def current_scope=(scope) #:nodoc:
|
||||||
Thread.current[:"#{self}_current_scope"] = scope
|
Thread.current["#{self}_current_scope"] = scope
|
||||||
end
|
end
|
||||||
|
|
||||||
# Use this macro in your model to set a default scope for all operations on
|
# Use this macro in your model to set a default scope for all operations on
|
||||||
|
Loading…
Reference in New Issue
Block a user