1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Removing RJS hack

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
Thiago Pradi 2010-09-01 19:46:43 -03:00 committed by José Valim
parent 7698596adb
commit df7f441c6e
2 changed files with 1 additions and 6 deletions

View file

@ -188,11 +188,6 @@ module ActionView #:nodoc:
delegate :logger, :to => :controller, :allow_nil => true
# TODO: HACK FOR RJS
def view_context
self
end
def self.xss_safe? #:nodoc:
true
end

View file

@ -579,7 +579,7 @@ module ActionView
# 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>