mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove old compatibility methods not being used
This commit is contained in:
parent
4280b20cde
commit
bc50cb31d6
4 changed files with 2 additions and 15 deletions
|
@ -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 @@ module ActionController
|
|||
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 @@ class FragmentCachingTest < ActionController::TestCase
|
|||
@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 @@ class ViewLoadPathsTest < ActionController::TestCase
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue