Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
589da3c1
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,发现更多精彩内容 >>
提交
589da3c1
编写于
12月 24, 2016
作者:
A
Akira Matsuda
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
No need to nodoc private methods
上级
cdb9d7f4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
24 deletion
+24
-24
actionpack/lib/action_controller/metal/instrumentation.rb
actionpack/lib/action_controller/metal/instrumentation.rb
+2
-2
actionpack/lib/action_controller/metal/params_wrapper.rb
actionpack/lib/action_controller/metal/params_wrapper.rb
+1
-1
actionpack/lib/action_controller/metal/rendering.rb
actionpack/lib/action_controller/metal/rendering.rb
+3
-3
actionpack/lib/action_dispatch/http/mime_type.rb
actionpack/lib/action_dispatch/http/mime_type.rb
+1
-1
actionpack/lib/action_dispatch/routing/mapper.rb
actionpack/lib/action_dispatch/routing/mapper.rb
+17
-17
未找到文件。
actionpack/lib/action_controller/metal/instrumentation.rb
浏览文件 @
589da3c1
...
...
@@ -83,14 +83,14 @@ def halted_callback_hook(filter)
# end
#
# :api: plugin
def
cleanup_view_runtime
#:nodoc:
def
cleanup_view_runtime
yield
end
# Every time after an action is processed, this method is invoked
# with the payload, so you can add more information.
# :api: plugin
def
append_info_to_payload
(
payload
)
#:nodoc:
def
append_info_to_payload
(
payload
)
payload
[
:view_runtime
]
=
view_runtime
end
...
...
actionpack/lib/action_controller/metal/params_wrapper.rb
浏览文件 @
589da3c1
...
...
@@ -135,7 +135,7 @@ def name
#
# This method also does namespace lookup. Foo::Bar::UsersController will
# try to find Foo::Bar::User, Foo::User and finally User.
def
_default_wrap_model
#:nodoc:
def
_default_wrap_model
return
nil
if
klass
.
anonymous?
model_name
=
klass
.
name
.
sub
(
/Controller$/
,
""
).
classify
...
...
actionpack/lib/action_controller/metal/rendering.rb
浏览文件 @
589da3c1
...
...
@@ -73,14 +73,14 @@ def _set_rendered_content_type(format)
end
# Normalize arguments by catching blocks and setting them on :update.
def
_normalize_args
(
action
=
nil
,
options
=
{},
&
blk
)
#:nodoc:
def
_normalize_args
(
action
=
nil
,
options
=
{},
&
blk
)
options
=
super
options
[
:update
]
=
blk
if
block_given?
options
end
# Normalize both text and status options.
def
_normalize_options
(
options
)
#:nodoc:
def
_normalize_options
(
options
)
_normalize_text
(
options
)
if
options
[
:html
]
...
...
@@ -103,7 +103,7 @@ def _normalize_text(options)
end
# Process controller specific options, as status, content-type and location.
def
_process_options
(
options
)
#:nodoc:
def
_process_options
(
options
)
status
,
content_type
,
location
=
options
.
values_at
(
:status
,
:content_type
,
:location
)
self
.
status
=
status
if
status
...
...
actionpack/lib/action_dispatch/http/mime_type.rb
浏览文件 @
589da3c1
...
...
@@ -297,7 +297,7 @@ def method_missing(method, *args)
end
end
def
respond_to_missing?
(
method
,
include_private
=
false
)
#:nodoc:
def
respond_to_missing?
(
method
,
include_private
=
false
)
method
.
to_s
.
ends_with?
"?"
end
end
...
...
actionpack/lib/action_dispatch/routing/mapper.rb
浏览文件 @
589da3c1
...
...
@@ -996,65 +996,65 @@ def defaults(defaults = {})
end
private
def
merge_path_scope
(
parent
,
child
)
#:nodoc:
def
merge_path_scope
(
parent
,
child
)
Mapper
.
normalize_path
(
"
#{
parent
}
/
#{
child
}
"
)
end
def
merge_shallow_path_scope
(
parent
,
child
)
#:nodoc:
def
merge_shallow_path_scope
(
parent
,
child
)
Mapper
.
normalize_path
(
"
#{
parent
}
/
#{
child
}
"
)
end
def
merge_as_scope
(
parent
,
child
)
#:nodoc:
def
merge_as_scope
(
parent
,
child
)
parent
?
"
#{
parent
}
_
#{
child
}
"
:
child
end
def
merge_shallow_prefix_scope
(
parent
,
child
)
#:nodoc:
def
merge_shallow_prefix_scope
(
parent
,
child
)
parent
?
"
#{
parent
}
_
#{
child
}
"
:
child
end
def
merge_module_scope
(
parent
,
child
)
#:nodoc:
def
merge_module_scope
(
parent
,
child
)
parent
?
"
#{
parent
}
/
#{
child
}
"
:
child
end
def
merge_controller_scope
(
parent
,
child
)
#:nodoc:
def
merge_controller_scope
(
parent
,
child
)
child
end
def
merge_action_scope
(
parent
,
child
)
#:nodoc:
def
merge_action_scope
(
parent
,
child
)
child
end
def
merge_via_scope
(
parent
,
child
)
#:nodoc:
def
merge_via_scope
(
parent
,
child
)
child
end
def
merge_format_scope
(
parent
,
child
)
#:nodoc:
def
merge_format_scope
(
parent
,
child
)
child
end
def
merge_path_names_scope
(
parent
,
child
)
#:nodoc:
def
merge_path_names_scope
(
parent
,
child
)
merge_options_scope
(
parent
,
child
)
end
def
merge_constraints_scope
(
parent
,
child
)
#:nodoc:
def
merge_constraints_scope
(
parent
,
child
)
merge_options_scope
(
parent
,
child
)
end
def
merge_defaults_scope
(
parent
,
child
)
#:nodoc:
def
merge_defaults_scope
(
parent
,
child
)
merge_options_scope
(
parent
,
child
)
end
def
merge_blocks_scope
(
parent
,
child
)
#:nodoc:
def
merge_blocks_scope
(
parent
,
child
)
merged
=
parent
?
parent
.
dup
:
[]
merged
<<
child
if
child
merged
end
def
merge_options_scope
(
parent
,
child
)
#:nodoc:
def
merge_options_scope
(
parent
,
child
)
(
parent
||
{}).
merge
(
child
)
end
def
merge_shallow_scope
(
parent
,
child
)
#:nodoc:
def
merge_shallow_scope
(
parent
,
child
)
child
?
true
:
false
end
...
...
@@ -1868,7 +1868,7 @@ def using_match_shorthand?(path)
path
=~
%r{^/?[-
\w
]+/[-
\w
/]+$}
end
def
decomposed_match
(
path
,
controller
,
options
,
_path
,
to
,
via
,
formatted
,
anchor
,
options_constraints
)
# :nodoc:
def
decomposed_match
(
path
,
controller
,
options
,
_path
,
to
,
via
,
formatted
,
anchor
,
options_constraints
)
if
on
=
options
.
delete
(
:on
)
send
(
on
)
{
decomposed_match
(
path
,
controller
,
options
,
_path
,
to
,
via
,
formatted
,
anchor
,
options_constraints
)
}
else
...
...
@@ -1883,7 +1883,7 @@ def decomposed_match(path, controller, options, _path, to, via, formatted, ancho
end
end
def
add_route
(
action
,
controller
,
options
,
_path
,
to
,
via
,
formatted
,
anchor
,
options_constraints
)
# :nodoc:
def
add_route
(
action
,
controller
,
options
,
_path
,
to
,
via
,
formatted
,
anchor
,
options_constraints
)
path
=
path_for_action
(
action
,
_path
)
raise
ArgumentError
,
"path is required"
if
path
.
blank?
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录