提交 df7f441c 编写于 作者: T Thiago Pradi 提交者: José Valim

Removing RJS hack

Signed-off-by: NJosé Valim <jose.valim@gmail.com>
上级 7698596a
......@@ -188,11 +188,6 @@ class << self
delegate :logger, :to => :controller, :allow_nil => true
# TODO: HACK FOR RJS
def view_context
self
end
def self.xss_safe? #:nodoc:
true
end
......
......@@ -579,7 +579,7 @@ def method_missing(method, *arguments)
# page.hide 'spinner'
# end
def update_page(&block)
JavaScriptGenerator.new(view_context, &block).to_s.html_safe
JavaScriptGenerator.new(self, &block).to_s.html_safe
end
# Works like update_page but wraps the generated JavaScript in a <script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册