Browse files

Removing RJS hack

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 7698596 commit df7f441c6e885afb6fecebe17387defe05220fa1 @thiagopradi thiagopradi committed with josevalim Sep 1, 2010
Showing with 1 addition and 6 deletions.
  1. +0 −5 actionpack/lib/action_view/base.rb
  2. +1 −1 actionpack/lib/action_view/helpers/prototype_helper.rb
View
5 actionpack/lib/action_view/base.rb
@@ -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
View
2 actionpack/lib/action_view/helpers/prototype_helper.rb
@@ -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>

0 comments on commit df7f441

Please sign in to comment.