mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Psych correctly gets visitor for SafeBuffer from superclass
This commit is contained in:
committed by
Aaron Patterson
parent
452dba72f5
commit
eb33bd944d
@@ -1,5 +1,6 @@
|
||||
require 'erb'
|
||||
require 'active_support/core_ext/kernel/singleton_class'
|
||||
require 'active_support/core_ext/yaml'
|
||||
|
||||
class ERB
|
||||
module Util
|
||||
@@ -101,8 +102,10 @@ module ActiveSupport #:nodoc:
|
||||
self
|
||||
end
|
||||
|
||||
def to_yaml(*args)
|
||||
to_str.to_yaml(*args)
|
||||
unless defined?(Psych)
|
||||
def to_yaml(*args)
|
||||
to_str.to_yaml(*args)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user