提交 e1f679a0 编写于 作者: J Jeremy Kemper

Simplify json decoder backend lazy load

上级 6e73cf6b
......@@ -9,10 +9,8 @@ class << self
delegate :decode, :to => :backend
def backend
@backend || begin
self.backend = "Yaml"
@backend
end
self.backend = "Yaml" unless defined?(@backend)
@backend
end
def backend=(name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册