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