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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user