Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
e2cc6538
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,发现更多精彩内容 >>
提交
e2cc6538
编写于
1月 19, 2012
作者:
J
José Valim
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Do not deprecate performed.
上级
c4b8fd3e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
2 deletion
+11
-2
actionpack/CHANGELOG.md
actionpack/CHANGELOG.md
+1
-2
actionpack/lib/action_controller/metal.rb
actionpack/lib/action_controller/metal.rb
+4
-0
actionpack/test/controller/base_test.rb
actionpack/test/controller/base_test.rb
+6
-0
未找到文件。
actionpack/CHANGELOG.md
浏览文件 @
e2cc6538
## Rails 4.0.0 (unreleased) ##
## Rails 4.0.0 (unreleased) ##
*
Add
`config.action_view.logger`
to configure logger for ActionView.
*Rafael França*
*
Add
`config.action_view.logger`
to configure logger for ActionView.
*Rafael França*
*
Deprecated ActionController::Integration in favour of ActionDispatch::Integration
*
Deprecated ActionController::Integration in favour of ActionDispatch::Integration
...
@@ -33,8 +34,6 @@
...
@@ -33,8 +34,6 @@
*
Deprecate method_missing handling for not found actions, use action_missing instead.
*Carlos Antonio da Silva*
*
Deprecate method_missing handling for not found actions, use action_missing instead.
*Carlos Antonio da Silva*
*
Deprecate ActionController#performed?, check for response_body presence instead.
*Carlos Antonio da Silva*
*
Deprecate ActionController#rescue_action, ActionController#initialize_template_class, and ActionController#assign_shortcuts.
*
Deprecate ActionController#rescue_action, ActionController#initialize_template_class, and ActionController#assign_shortcuts.
These methods were not being used internally anymore and are going to be removed in Rails 4.
*Carlos Antonio da Silva*
These methods were not being used internally anymore and are going to be removed in Rails 4.
*Carlos Antonio da Silva*
...
...
actionpack/lib/action_controller/metal.rb
浏览文件 @
e2cc6538
...
@@ -186,6 +186,10 @@ def response_body=(val)
...
@@ -186,6 +186,10 @@ def response_body=(val)
super
body
super
body
end
end
def
performed?
response_body
end
def
dispatch
(
name
,
request
)
#:nodoc:
def
dispatch
(
name
,
request
)
#:nodoc:
@_request
=
request
@_request
=
request
@_env
=
request
.
env
@_env
=
request
.
env
...
...
actionpack/test/controller/base_test.rb
浏览文件 @
e2cc6538
...
@@ -93,6 +93,12 @@ def setup
...
@@ -93,6 +93,12 @@ def setup
Submodule
::
ContainedNonEmptyController
.
new
]
Submodule
::
ContainedNonEmptyController
.
new
]
end
end
def
test_performed?
assert
!
@empty
.
performed?
@empty
.
response_body
=
[
"sweet"
]
assert
@empty
.
performed?
end
def
test_action_methods
def
test_action_methods
@empty_controllers
.
each
do
|
c
|
@empty_controllers
.
each
do
|
c
|
assert_equal
Set
.
new
,
c
.
class
.
action_methods
,
"
#{
c
.
controller_path
}
should be empty!"
assert_equal
Set
.
new
,
c
.
class
.
action_methods
,
"
#{
c
.
controller_path
}
should be empty!"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录