mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Simplify json decoder backend lazy load
This commit is contained in:
@@ -9,10 +9,8 @@ module ActiveSupport
|
||||
delegate :decode, :to => :backend
|
||||
|
||||
def backend
|
||||
@backend || begin
|
||||
self.backend = "Yaml"
|
||||
@backend
|
||||
end
|
||||
self.backend = "Yaml" unless defined?(@backend)
|
||||
@backend
|
||||
end
|
||||
|
||||
def backend=(name)
|
||||
|
||||
Reference in New Issue
Block a user