mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Fix the stupid previous commit
This commit is contained in:
parent
b44e1af5dd
commit
439643ba5a
@ -9,6 +9,8 @@ module ActiveModel
|
||||
class Serializer
|
||||
include Serializable
|
||||
|
||||
@mutex = Mutex.new
|
||||
|
||||
class << self
|
||||
def inherited(base)
|
||||
base._attributes = []
|
||||
@ -16,7 +18,7 @@ module ActiveModel
|
||||
end
|
||||
|
||||
def setup
|
||||
Mutex.new.synchronize do
|
||||
@mutex.synchronize do
|
||||
yield CONFIG
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user