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:
parent
7698596adb
commit
df7f441c6e
2 changed files with 1 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue