Fix the stupid previous commit

This commit is contained in:
Santiago Pastorino 2013-10-24 19:15:13 -02:00
parent b44e1af5dd
commit 439643ba5a

View File

@ -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