diff --git a/lib/jquery-rjs/rendering.rb b/lib/jquery-rjs/rendering.rb index e2350d8..0b42a74 100644 --- a/lib/jquery-rjs/rendering.rb +++ b/lib/jquery-rjs/rendering.rb @@ -8,6 +8,7 @@ def render_with_update(options = {}, locals = {}, &block) render_without_update(options, locals, &block) end end - - alias_method_chain :render, :update -end \ No newline at end of file + + alias_method :render_without_update, :render + alias_method :render, :render_with_update +end diff --git a/lib/jquery-rjs/selector_assertions.rb b/lib/jquery-rjs/selector_assertions.rb index babf4ec..4d78c88 100644 --- a/lib/jquery-rjs/selector_assertions.rb +++ b/lib/jquery-rjs/selector_assertions.rb @@ -219,7 +219,8 @@ def response_from_page_with_rjs response_from_page_without_rjs end end - alias_method_chain :response_from_page, :rjs + alias_method :response_from_page_without_rjs, :response_from_page + alias_method :response_from_page, :response_from_page_with_rjs # Unescapes a RJS string. def unescape_rjs(rjs_string)