提交 bc50cb31 编写于 作者: C Carlos Antonio da Silva

Remove old compatibility methods not being used

上级 4280b20c
......@@ -116,7 +116,7 @@ module ActionController
#
# Title: <%= @post.title %>
#
# You don't have to rely on the automated rendering. For example, actions that could result in the rendering of different templates
# You don't have to rely on the automated rendering. For example, actions that could result in the rendering of different templates
# will use the manual rendering methods:
#
# def search
......@@ -133,7 +133,7 @@ module ActionController
# == Redirects
#
# Redirects are used to move from one action to another. For example, after a <tt>create</tt> action, which stores a blog entry to the
# database, we might like to show the user the new entry. Because we're following good DRY principles (Don't Repeat Yourself), we're
# database, we might like to show the user the new entry. Because we're following good DRY principles (Don't Repeat Yourself), we're
# going to reuse (and redirect to) a <tt>show</tt> action that we'll assume has already been created. The code might look like this:
#
# def create
......
......@@ -28,10 +28,6 @@ def rescue_action(env)
end
end
# For old tests
def initialize_template_class(*) end
def assign_shortcuts(*) end
def _normalize_options(options)
options[:text] = nil if options.delete(:nothing) == true
options[:text] = " " if options.key?(:text) && options[:text].nil?
......
......@@ -686,8 +686,6 @@ def setup
@controller.params = @params
@controller.request = @request
@controller.response = @response
@controller.send(:initialize_template_class, @response)
@controller.send(:assign_shortcuts, @request, @response)
end
def test_fragment_cache_key
......
......@@ -24,16 +24,9 @@ def hello_world; render(:template => 'test/hello_world'); end
end
def setup
# TestController.view_paths = nil
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
@controller = TestController.new
# Following is needed in order to setup @controller.template object properly
@controller.send :assign_shortcuts, @request, @response
@controller.send :initialize_template_class, @response
@paths = TestController.view_paths
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册