Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
c40b4428
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,体验更适合开发者的 AI 搜索 >>
提交
c40b4428
编写于
10月 28, 2017
作者:
S
Shuhei Kitagawa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
removed unnecessary returns
上级
bf6456e0
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
16 addition
and
16 deletion
+16
-16
actionmailer/test/caching_test.rb
actionmailer/test/caching_test.rb
+1
-1
actionpack/lib/action_dispatch/journey/router.rb
actionpack/lib/action_dispatch/journey/router.rb
+1
-1
actionpack/test/controller/caching_test.rb
actionpack/test/controller/caching_test.rb
+1
-1
actionview/lib/action_view/helpers/text_helper.rb
actionview/lib/action_view/helpers/text_helper.rb
+2
-2
activejob/test/support/delayed_job/delayed/backend/test.rb
activejob/test/support/delayed_job/delayed/backend/test.rb
+1
-1
activerecord/lib/active_record/attribute_methods.rb
activerecord/lib/active_record/attribute_methods.rb
+1
-1
activerecord/lib/active_record/counter_cache.rb
activerecord/lib/active_record/counter_cache.rb
+1
-1
activesupport/lib/active_support/concern.rb
activesupport/lib/active_support/concern.rb
+1
-1
activesupport/lib/active_support/dependencies.rb
activesupport/lib/active_support/dependencies.rb
+1
-1
activesupport/lib/active_support/duration/iso8601_parser.rb
activesupport/lib/active_support/duration/iso8601_parser.rb
+1
-1
activesupport/lib/active_support/testing/isolation.rb
activesupport/lib/active_support/testing/isolation.rb
+1
-1
activesupport/test/core_ext/module/remove_method_test.rb
activesupport/test/core_ext/module/remove_method_test.rb
+4
-4
未找到文件。
actionmailer/test/caching_test.rb
浏览文件 @
c40b4428
...
...
@@ -198,7 +198,7 @@ def template_digest(name)
class
CacheHelperOutputBufferTest
<
BaseCachingTest
class
MockController
def
read_fragment
(
name
,
options
)
return
false
false
end
def
write_fragment
(
name
,
fragment
,
options
)
...
...
actionpack/lib/action_dispatch/journey/router.rb
浏览文件 @
c40b4428
...
...
@@ -61,7 +61,7 @@ def serve(req)
return
[
status
,
headers
,
body
]
end
return
[
404
,
{
"X-Cascade"
=>
"pass"
},
[
"Not Found"
]]
[
404
,
{
"X-Cascade"
=>
"pass"
},
[
"Not Found"
]]
end
def
recognize
(
rails_req
)
...
...
actionpack/test/controller/caching_test.rb
浏览文件 @
c40b4428
...
...
@@ -317,7 +317,7 @@ def template_digest(name)
class
CacheHelperOutputBufferTest
<
ActionController
::
TestCase
class
MockController
def
read_fragment
(
name
,
options
)
return
false
false
end
def
write_fragment
(
name
,
fragment
,
options
)
...
...
actionview/lib/action_view/helpers/text_helper.rb
浏览文件 @
c40b4428
...
...
@@ -422,7 +422,7 @@ def current_value
def
to_s
value
=
@values
[
@index
].
to_s
@index
=
next_index
return
value
value
end
private
...
...
@@ -446,7 +446,7 @@ def step_index(n)
# uses an instance variable of ActionView::Base.
def
get_cycle
(
name
)
@_cycles
=
Hash
.
new
unless
defined?
(
@_cycles
)
return
@_cycles
[
name
]
@_cycles
[
name
]
end
def
set_cycle
(
name
,
cycle_object
)
...
...
activejob/test/support/delayed_job/delayed/backend/test.rb
浏览文件 @
c40b4428
...
...
@@ -77,7 +77,7 @@ def lock_exclusively!(max_run_time, worker)
self
.
locked_by
=
worker
end
return
true
true
end
def
self
.
db_time_now
...
...
activerecord/lib/active_record/attribute_methods.rb
浏览文件 @
c40b4428
...
...
@@ -236,7 +236,7 @@ def respond_to?(name, include_private = false)
return
has_attribute?
(
name
)
end
return
true
true
end
# Returns +true+ if the given attribute is in the attributes hash, otherwise +false+.
...
...
activerecord/lib/active_record/counter_cache.rb
浏览文件 @
c40b4428
...
...
@@ -53,7 +53,7 @@ def reset_counters(id, *counters, touch: nil)
unscoped
.
where
(
primary_key
=>
object
.
id
).
update_all
(
updates
)
end
return
true
true
end
# A generic "counter updater" implementation, intended primarily to be
...
...
activesupport/lib/active_support/concern.rb
浏览文件 @
c40b4428
...
...
@@ -113,7 +113,7 @@ def self.extended(base) #:nodoc:
def
append_features
(
base
)
if
base
.
instance_variable_defined?
(
:@_dependencies
)
base
.
instance_variable_get
(
:@_dependencies
)
<<
self
return
false
false
else
return
false
if
base
<
self
@_dependencies
.
each
{
|
dep
|
base
.
include
(
dep
)
}
...
...
activesupport/lib/active_support/dependencies.rb
浏览文件 @
c40b4428
...
...
@@ -615,7 +615,7 @@ def autoloaded?(desc)
return
false
if
desc
.
is_a?
(
Module
)
&&
desc
.
anonymous?
name
=
to_constant_name
desc
return
false
unless
qualified_const_defined?
(
name
)
return
autoloaded_constants
.
include?
(
name
)
autoloaded_constants
.
include?
(
name
)
end
# Will the provided constant descriptor be unloaded?
...
...
activesupport/lib/active_support/duration/iso8601_parser.rb
浏览文件 @
c40b4428
...
...
@@ -118,7 +118,7 @@ def validate!
raise_parsing_error
"(only last part can be fractional)"
end
return
true
true
end
end
end
...
...
activesupport/lib/active_support/testing/isolation.rb
浏览文件 @
c40b4428
...
...
@@ -55,7 +55,7 @@ def run_in_isolation(&blk)
write
.
close
result
=
read
.
read
Process
.
wait2
(
pid
)
re
turn
re
sult
.
unpack
(
"m"
)[
0
]
result
.
unpack
(
"m"
)[
0
]
end
end
...
...
activesupport/test/core_ext/module/remove_method_test.rb
浏览文件 @
c40b4428
...
...
@@ -6,22 +6,22 @@
module
RemoveMethodTests
class
A
def
do_something
return
1
1
end
def
do_something_protected
return
1
1
end
protected
:do_something_protected
def
do_something_private
return
1
1
end
private
:do_something_private
class
<<
self
def
do_something_else
return
2
2
end
end
end
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录