mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user