mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
This is not being used
This commit is contained in:
parent
dfdc292e35
commit
dc33dac56b
@ -8,18 +8,6 @@ module ActiveModel
|
|||||||
@mutex = Mutex.new
|
@mutex = Mutex.new
|
||||||
end
|
end
|
||||||
|
|
||||||
def [](key)
|
|
||||||
@mutex.synchronize do
|
|
||||||
@data[key.to_s]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def []=(key, value)
|
|
||||||
@mutex.synchronize do
|
|
||||||
@data[key.to_s] = value
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def each(&block)
|
def each(&block)
|
||||||
@mutex.synchronize do
|
@mutex.synchronize do
|
||||||
@data.each(&block)
|
@data.each(&block)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user