Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
4db99eb8
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,发现更多精彩内容 >>
提交
4db99eb8
编写于
12月 24, 2016
作者:
A
Akira Matsuda
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
No need to nodoc private methods
上级
0fdd9bd3
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
10 deletion
+10
-10
activesupport/lib/active_support/cache.rb
activesupport/lib/active_support/cache.rb
+2
-2
activesupport/lib/active_support/cache/file_store.rb
activesupport/lib/active_support/cache/file_store.rb
+1
-1
activesupport/lib/active_support/duration.rb
activesupport/lib/active_support/duration.rb
+1
-1
activesupport/lib/active_support/multibyte/unicode.rb
activesupport/lib/active_support/multibyte/unicode.rb
+1
-1
activesupport/lib/active_support/number_helper/number_converter.rb
...port/lib/active_support/number_helper/number_converter.rb
+5
-5
未找到文件。
activesupport/lib/active_support/cache.rb
浏览文件 @
4db99eb8
...
...
@@ -511,7 +511,7 @@ def delete_entry(key, options) # :nodoc:
private
# Merges the default options with ones specific to a method call.
def
merged_options
(
call_options
)
# :nodoc:
def
merged_options
(
call_options
)
if
call_options
options
.
merge
(
call_options
)
else
...
...
@@ -522,7 +522,7 @@ def merged_options(call_options) # :nodoc:
# Expands key to be a consistent string value. Invokes +cache_key+ if
# object responds to +cache_key+. Otherwise, +to_param+ method will be
# called. If the key is a Hash, then keys will be sorted alphabetically.
def
expanded_key
(
key
)
# :nodoc:
def
expanded_key
(
key
)
return
key
.
cache_key
.
to_s
if
key
.
respond_to?
(
:cache_key
)
case
key
...
...
activesupport/lib/active_support/cache/file_store.rb
浏览文件 @
4db99eb8
...
...
@@ -100,7 +100,7 @@ def delete_entry(key, options)
private
# Lock a file for a block so only one process can modify it at a time.
def
lock_file
(
file_name
,
&
block
)
# :nodoc:
def
lock_file
(
file_name
,
&
block
)
if
File
.
exist?
(
file_name
)
File
.
open
(
file_name
,
"r+"
)
do
|
f
|
begin
...
...
activesupport/lib/active_support/duration.rb
浏览文件 @
4db99eb8
...
...
@@ -181,7 +181,7 @@ def sum(sign, time = ::Time.current) #:nodoc:
private
def
method_missing
(
method
,
*
args
,
&
block
)
#:nodoc:
def
method_missing
(
method
,
*
args
,
&
block
)
value
.
send
(
method
,
*
args
,
&
block
)
end
end
...
...
activesupport/lib/active_support/multibyte/unicode.rb
浏览文件 @
4db99eb8
...
...
@@ -358,7 +358,7 @@ def self.filename
private
def
apply_mapping
(
string
,
mapping
)
#:nodoc:
def
apply_mapping
(
string
,
mapping
)
database
.
codepoints
string
.
each_codepoint
.
map
do
|
codepoint
|
cp
=
database
.
codepoints
[
codepoint
]
...
...
activesupport/lib/active_support/number_helper/number_converter.rb
浏览文件 @
4db99eb8
...
...
@@ -139,17 +139,17 @@ def options
@options
||=
format_options
.
merge
(
opts
)
end
def
format_options
#:nodoc:
def
format_options
default_format_options
.
merge!
(
i18n_format_options
)
end
def
default_format_options
#:nodoc:
def
default_format_options
options
=
DEFAULTS
[
:format
].
dup
options
.
merge!
(
DEFAULTS
[
namespace
][
:format
])
if
namespace
options
end
def
i18n_format_options
#:nodoc:
def
i18n_format_options
locale
=
opts
[
:locale
]
options
=
I18n
.
translate
(
:'number.format'
,
locale:
locale
,
default:
{}).
dup
...
...
@@ -160,7 +160,7 @@ def i18n_format_options #:nodoc:
options
end
def
translate_number_value_with_default
(
key
,
i18n_options
=
{})
#:nodoc:
def
translate_number_value_with_default
(
key
,
i18n_options
=
{})
I18n
.
translate
(
key
,
{
default:
default_value
(
key
),
scope: :number
}.
merge!
(
i18n_options
))
end
...
...
@@ -172,7 +172,7 @@ def default_value(key)
key
.
split
(
"."
).
reduce
(
DEFAULTS
)
{
|
defaults
,
k
|
defaults
[
k
.
to_sym
]
}
end
def
valid_float?
#:nodoc:
def
valid_float?
Float
(
number
)
rescue
ArgumentError
,
TypeError
false
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录