Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
bc50cb31
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bc50cb31
编写于
1月 14, 2012
作者:
C
Carlos Antonio da Silva
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove old compatibility methods not being used
上级
4280b20c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
2 addition
and
15 deletion
+2
-15
actionpack/lib/action_controller/base.rb
actionpack/lib/action_controller/base.rb
+2
-2
actionpack/lib/action_controller/metal/compatibility.rb
actionpack/lib/action_controller/metal/compatibility.rb
+0
-4
actionpack/test/controller/caching_test.rb
actionpack/test/controller/caching_test.rb
+0
-2
actionpack/test/controller/view_paths_test.rb
actionpack/test/controller/view_paths_test.rb
+0
-7
未找到文件。
actionpack/lib/action_controller/base.rb
浏览文件 @
bc50cb31
...
@@ -116,7 +116,7 @@ module ActionController
...
@@ -116,7 +116,7 @@ module ActionController
#
#
# Title: <%= @post.title %>
# 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:
# will use the manual rendering methods:
#
#
# def search
# def search
...
@@ -133,7 +133,7 @@ module ActionController
...
@@ -133,7 +133,7 @@ module ActionController
# == Redirects
# == 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
# 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:
# 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
# def create
...
...
actionpack/lib/action_controller/metal/compatibility.rb
浏览文件 @
bc50cb31
...
@@ -28,10 +28,6 @@ def rescue_action(env)
...
@@ -28,10 +28,6 @@ def rescue_action(env)
end
end
end
end
# For old tests
def
initialize_template_class
(
*
)
end
def
assign_shortcuts
(
*
)
end
def
_normalize_options
(
options
)
def
_normalize_options
(
options
)
options
[
:text
]
=
nil
if
options
.
delete
(
:nothing
)
==
true
options
[
:text
]
=
nil
if
options
.
delete
(
:nothing
)
==
true
options
[
:text
]
=
" "
if
options
.
key?
(
:text
)
&&
options
[
:text
].
nil?
options
[
:text
]
=
" "
if
options
.
key?
(
:text
)
&&
options
[
:text
].
nil?
...
...
actionpack/test/controller/caching_test.rb
浏览文件 @
bc50cb31
...
@@ -686,8 +686,6 @@ def setup
...
@@ -686,8 +686,6 @@ def setup
@controller
.
params
=
@params
@controller
.
params
=
@params
@controller
.
request
=
@request
@controller
.
request
=
@request
@controller
.
response
=
@response
@controller
.
response
=
@response
@controller
.
send
(
:initialize_template_class
,
@response
)
@controller
.
send
(
:assign_shortcuts
,
@request
,
@response
)
end
end
def
test_fragment_cache_key
def
test_fragment_cache_key
...
...
actionpack/test/controller/view_paths_test.rb
浏览文件 @
bc50cb31
...
@@ -24,16 +24,9 @@ def hello_world; render(:template => 'test/hello_world'); end
...
@@ -24,16 +24,9 @@ def hello_world; render(:template => 'test/hello_world'); end
end
end
def
setup
def
setup
# TestController.view_paths = nil
@request
=
ActionController
::
TestRequest
.
new
@request
=
ActionController
::
TestRequest
.
new
@response
=
ActionController
::
TestResponse
.
new
@response
=
ActionController
::
TestResponse
.
new
@controller
=
TestController
.
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
@paths
=
TestController
.
view_paths
end
end
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录