Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
29c8a430
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,发现更多精彩内容 >>
提交
29c8a430
编写于
12月 20, 2009
作者:
J
Joshua Peek
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename RackConvenience => RackDelegation
上级
0f8a5c79
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
10 addition
and
10 deletion
+10
-10
actionpack/lib/action_controller.rb
actionpack/lib/action_controller.rb
+1
-1
actionpack/lib/action_controller/base.rb
actionpack/lib/action_controller/base.rb
+1
-1
actionpack/lib/action_controller/metal.rb
actionpack/lib/action_controller/metal.rb
+3
-3
actionpack/lib/action_controller/metal/conditional_get.rb
actionpack/lib/action_controller/metal/conditional_get.rb
+1
-1
actionpack/lib/action_controller/metal/cookies.rb
actionpack/lib/action_controller/metal/cookies.rb
+1
-1
actionpack/lib/action_controller/metal/rack_delegation.rb
actionpack/lib/action_controller/metal/rack_delegation.rb
+1
-1
actionpack/lib/action_controller/metal/testing.rb
actionpack/lib/action_controller/metal/testing.rb
+1
-1
actionpack/lib/action_controller/metal/url_for.rb
actionpack/lib/action_controller/metal/url_for.rb
+1
-1
未找到文件。
actionpack/lib/action_controller.rb
浏览文件 @
29c8a430
...
@@ -22,7 +22,7 @@ module ActionController
...
@@ -22,7 +22,7 @@ module ActionController
autoload
:HideActions
autoload
:HideActions
autoload
:Layouts
autoload
:Layouts
autoload
:MimeResponds
autoload
:MimeResponds
autoload
:Rack
Convenience
autoload
:Rack
Delegation
autoload
:Compatibility
autoload
:Compatibility
autoload
:Redirecting
autoload
:Redirecting
autoload
:Rendering
autoload
:Rendering
...
...
actionpack/lib/action_controller/base.rb
浏览文件 @
29c8a430
...
@@ -13,7 +13,7 @@ class Base < Metal
...
@@ -13,7 +13,7 @@ class Base < Metal
include
ActionController
::
RenderOptions
::
All
include
ActionController
::
RenderOptions
::
All
include
ActionController
::
Layouts
include
ActionController
::
Layouts
include
ActionController
::
ConditionalGet
include
ActionController
::
ConditionalGet
include
ActionController
::
Rack
Convenience
include
ActionController
::
Rack
Delegation
include
ActionController
::
Benchmarking
include
ActionController
::
Benchmarking
include
ActionController
::
Configuration
include
ActionController
::
Configuration
...
...
actionpack/lib/action_controller/metal.rb
浏览文件 @
29c8a430
...
@@ -45,7 +45,7 @@ def controller_path
...
@@ -45,7 +45,7 @@ def controller_path
# The details below can be overridden to support a specific
# The details below can be overridden to support a specific
# Request and Response object. The default ActionController::Base
# Request and Response object. The default ActionController::Base
# implementation includes Rack
Convenience
, which makes a request
# implementation includes Rack
Delegation
, which makes a request
# and response object available. You might wish to control the
# and response object available. You might wish to control the
# environment and response manually for performance reasons.
# environment and response manually for performance reasons.
...
@@ -57,8 +57,8 @@ def initialize(*)
...
@@ -57,8 +57,8 @@ def initialize(*)
end
end
# Basic implementations for content_type=, location=, and headers are
# Basic implementations for content_type=, location=, and headers are
# provided to reduce the dependency on the Rack
Convenience
module
# provided to reduce the dependency on the Rack
Delegation
module
# in Render
ing and Redirecting
.
# in Render
er and Redirector
.
def
content_type
=
(
type
)
def
content_type
=
(
type
)
headers
[
"Content-Type"
]
=
type
.
to_s
headers
[
"Content-Type"
]
=
type
.
to_s
...
...
actionpack/lib/action_controller/metal/conditional_get.rb
浏览文件 @
29c8a430
...
@@ -2,7 +2,7 @@ module ActionController
...
@@ -2,7 +2,7 @@ module ActionController
module
ConditionalGet
module
ConditionalGet
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
include
Rack
Convenience
include
Rack
Delegation
include
Head
include
Head
# Sets the etag, last_modified, or both on the response and renders a
# Sets the etag, last_modified, or both on the response and renders a
...
...
actionpack/lib/action_controller/metal/cookies.rb
浏览文件 @
29c8a430
...
@@ -46,7 +46,7 @@ module ActionController #:nodoc:
...
@@ -46,7 +46,7 @@ module ActionController #:nodoc:
module
Cookies
module
Cookies
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
include
Rack
Convenience
include
Rack
Delegation
included
do
included
do
helper_method
:cookies
helper_method
:cookies
...
...
actionpack/lib/action_controller/metal/rack_
convenience
.rb
→
actionpack/lib/action_controller/metal/rack_
delegation
.rb
浏览文件 @
29c8a430
module
ActionController
module
ActionController
module
Rack
Convenience
module
Rack
Delegation
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
included
do
included
do
...
...
actionpack/lib/action_controller/metal/testing.rb
浏览文件 @
29c8a430
...
@@ -2,7 +2,7 @@ module ActionController
...
@@ -2,7 +2,7 @@ module ActionController
module
Testing
module
Testing
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
include
Rack
Convenience
include
Rack
Delegation
# OMG MEGA HAX
# OMG MEGA HAX
def
process_with_new_base_test
(
request
,
response
)
def
process_with_new_base_test
(
request
,
response
)
...
...
actionpack/lib/action_controller/metal/url_for.rb
浏览文件 @
29c8a430
...
@@ -2,7 +2,7 @@ module ActionController
...
@@ -2,7 +2,7 @@ module ActionController
module
UrlFor
module
UrlFor
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
include
Rack
Convenience
include
Rack
Delegation
# Overwrite to implement a number of default options that all url_for-based methods will use. The default options should come in
# Overwrite to implement a number of default options that all url_for-based methods will use. The default options should come in
# the form of a hash, just like the one you would use for url_for directly. Example:
# the form of a hash, just like the one you would use for url_for directly. Example:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录