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

Use as_json instead of rails_to_json

上级 86fc43fd
......@@ -1176,7 +1176,7 @@ def reload(options_for_replace = {})
class JavaScriptVariableProxy < JavaScriptProxy #:nodoc:
def initialize(generator, variable)
@variable = variable
@variable = ActiveSupport::JSON::Variable.new(variable)
@empty = true # only record lines if we have to. gets rid of unnecessary linebreaks
super(generator)
end
......@@ -1187,7 +1187,7 @@ def respond_to?(*)
true
end
def rails_to_json(*)
def as_json(options = nil)
@variable
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册