Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
b1b9a0ae
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 搜索 >>
提交
b1b9a0ae
编写于
12月 03, 2013
作者:
L
Lauro Caetano
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Typos. return -> returns. [ci skip]
上级
41ba51f4
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
23 addition
and
23 deletion
+23
-23
actionpack/lib/abstract_controller/rendering.rb
actionpack/lib/abstract_controller/rendering.rb
+1
-1
actionpack/lib/action_controller/metal/head.rb
actionpack/lib/action_controller/metal/head.rb
+1
-1
actionpack/lib/action_dispatch/testing/integration.rb
actionpack/lib/action_dispatch/testing/integration.rb
+1
-1
actionpack/test/controller/http_digest_authentication_test.rb
...onpack/test/controller/http_digest_authentication_test.rb
+1
-1
actionview/lib/action_view/vendor/html-scanner/html/node.rb
actionview/lib/action_view/vendor/html-scanner/html/node.rb
+2
-2
actionview/lib/action_view/vendor/html-scanner/html/selector.rb
...view/lib/action_view/vendor/html-scanner/html/selector.rb
+1
-1
actionview/lib/action_view/vendor/html-scanner/html/tokenizer.rb
...iew/lib/action_view/vendor/html-scanner/html/tokenizer.rb
+1
-1
activemodel/lib/active_model/validator.rb
activemodel/lib/active_model/validator.rb
+1
-1
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
...ve_record/connection_adapters/abstract/connection_pool.rb
+1
-1
activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
...ecord/connection_adapters/abstract/database_statements.rb
+1
-1
activerecord/lib/active_record/fixtures.rb
activerecord/lib/active_record/fixtures.rb
+1
-1
activesupport/lib/active_support/cache.rb
activesupport/lib/active_support/cache.rb
+1
-1
activesupport/lib/active_support/core_ext/hash/except.rb
activesupport/lib/active_support/core_ext/hash/except.rb
+1
-1
activesupport/lib/active_support/core_ext/hash/keys.rb
activesupport/lib/active_support/core_ext/hash/keys.rb
+6
-6
activesupport/lib/active_support/values/time_zone.rb
activesupport/lib/active_support/values/time_zone.rb
+2
-2
railties/lib/rails/generators/base.rb
railties/lib/rails/generators/base.rb
+1
-1
未找到文件。
actionpack/lib/abstract_controller/rendering.rb
浏览文件 @
b1b9a0ae
...
...
@@ -45,7 +45,7 @@ def render_to_string(*args, &block)
def
render_to_body
(
options
=
{})
end
# Return Content-Type of rendered content
# Return
s
Content-Type of rendered content
# :api: public
def
rendered_format
Mime
::
TEXT
...
...
actionpack/lib/action_controller/metal/head.rb
浏览文件 @
b1b9a0ae
module
ActionController
module
Head
# Return a response that has no content (merely headers). The options
# Return
s
a response that has no content (merely headers). The options
# argument is interpreted to be a hash of header names and values.
# This allows you to easily return a response that consists only of
# significant headers:
...
...
actionpack/lib/action_dispatch/testing/integration.rb
浏览文件 @
b1b9a0ae
...
...
@@ -242,7 +242,7 @@ def https!(flag = true)
@https
=
flag
end
# Return +true+ if the session is mimicking a secure HTTPS request.
# Return
s
+true+ if the session is mimicking a secure HTTPS request.
#
# if session.https?
# ...
...
...
actionpack/test/controller/http_digest_authentication_test.rb
浏览文件 @
b1b9a0ae
...
...
@@ -21,7 +21,7 @@ def display
def
authenticate
authenticate_or_request_with_http_digest
(
"SuperSecret"
)
do
|
username
|
# Return the password
# Return
s
the password
USERS
[
username
]
end
end
...
...
actionview/lib/action_view/vendor/html-scanner/html/node.rb
浏览文件 @
b1b9a0ae
...
...
@@ -71,12 +71,12 @@ def initialize(parent, line=0, pos=0)
@line
,
@position
=
line
,
pos
end
# Return a textual representation of the node.
# Return
s
a textual representation of the node.
def
to_s
@children
.
join
()
end
# Return false (subclasses must override this to provide specific matching
# Return
s
false (subclasses must override this to provide specific matching
# behavior.) +conditions+ may be of any type.
def
match
(
conditions
)
false
...
...
actionview/lib/action_view/vendor/html-scanner/html/selector.rb
浏览文件 @
b1b9a0ae
...
...
@@ -488,7 +488,7 @@ def to_s #:nodoc:
end
# Return the next element after this one. Skips sibling text nodes.
# Return
s
the next element after this one. Skips sibling text nodes.
#
# With the +name+ argument, returns the next element with that name,
# skipping other sibling elements.
...
...
actionview/lib/action_view/vendor/html-scanner/html/tokenizer.rb
浏览文件 @
b1b9a0ae
...
...
@@ -30,7 +30,7 @@ def initialize(text)
@current_line
=
1
end
# Return the next token in the sequence, or +nil+ if there are no more tokens in
# Return
s
the next token in the sequence, or +nil+ if there are no more tokens in
# the stream.
def
next
return
nil
if
@scanner
.
eos?
...
...
activemodel/lib/active_model/validator.rb
浏览文件 @
b1b9a0ae
...
...
@@ -109,7 +109,7 @@ def initialize(options = {})
deprecated_setup
(
options
)
end
# Return the kind for this validator.
# Return
s
the kind for this validator.
#
# PresenceValidator.new.kind # => :presence
# UniquenessValidator.new.kind # => :uniqueness
...
...
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
浏览文件 @
b1b9a0ae
...
...
@@ -86,7 +86,7 @@ def any_waiting?
end
end
# Return the number of threads currently waiting on this
# Return
s
the number of threads currently waiting on this
# queue.
def
num_waiting
synchronize
do
...
...
activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
浏览文件 @
b1b9a0ae
...
...
@@ -350,7 +350,7 @@ def join_to_delete(delete, select, key) #:nodoc:
protected
# Return a subquery for the given key using the join information.
# Return
s
a subquery for the given key using the join information.
def
subquery_for
(
key
,
select
)
subselect
=
select
.
clone
subselect
.
projections
=
[
key
]
...
...
activerecord/lib/active_record/fixtures.rb
浏览文件 @
b1b9a0ae
...
...
@@ -582,7 +582,7 @@ def fixture_sql(conn)
}
end
# Return a hash of rows to be inserted. The key is the table, the value is
# Return
s
a hash of rows to be inserted. The key is the table, the value is
# a list of rows to insert to that table.
def
table_rows
now
=
config
.
default_timezone
==
:utc
?
Time
.
now
.
utc
:
Time
.
now
...
...
activesupport/lib/active_support/cache.rb
浏览文件 @
b1b9a0ae
...
...
@@ -401,7 +401,7 @@ def delete(name, options = nil)
end
end
# Return +true+ if the cache contains an entry for the given key.
# Return
s
+true+ if the cache contains an entry for the given key.
#
# Options are passed to the underlying cache implementation.
def
exist?
(
name
,
options
=
nil
)
...
...
activesupport/lib/active_support/core_ext/hash/except.rb
浏览文件 @
b1b9a0ae
class
Hash
# Return a hash that includes everything but the given keys. This is useful for
# Return
s
a hash that includes everything but the given keys. This is useful for
# limiting a set of parameters to everything but a few known toggles:
#
# @person.update(params[:person].except(:admin))
...
...
activesupport/lib/active_support/core_ext/hash/keys.rb
浏览文件 @
b1b9a0ae
class
Hash
# Return a new hash with all keys converted using the block operation.
# Return
s
a new hash with all keys converted using the block operation.
#
# hash = { name: 'Rob', age: '28' }
#
...
...
@@ -22,7 +22,7 @@ def transform_keys!
self
end
# Return a new hash with all keys converted to strings.
# Return
s
a new hash with all keys converted to strings.
#
# hash = { name: 'Rob', age: '28' }
#
...
...
@@ -38,7 +38,7 @@ def stringify_keys!
transform_keys!
{
|
key
|
key
.
to_s
}
end
# Return a new hash with all keys converted to symbols, as long as
# Return
s
a new hash with all keys converted to symbols, as long as
# they respond to +to_sym+.
#
# hash = { 'name' => 'Rob', 'age' => '28' }
...
...
@@ -71,7 +71,7 @@ def assert_valid_keys(*valid_keys)
end
end
# Return a new hash with all keys converted by the block operation.
# Return
s
a new hash with all keys converted by the block operation.
# This includes the keys from the root hash and from all
# nested hashes.
#
...
...
@@ -98,7 +98,7 @@ def deep_transform_keys!(&block)
self
end
# Return a new hash with all keys converted to strings.
# Return
s
a new hash with all keys converted to strings.
# This includes the keys from the root hash and from all
# nested hashes.
#
...
...
@@ -117,7 +117,7 @@ def deep_stringify_keys!
deep_transform_keys!
{
|
key
|
key
.
to_s
}
end
# Return a new hash with all keys converted to symbols, as long as
# Return
s
a new hash with all keys converted to symbols, as long as
# they respond to +to_sym+. This includes the keys from the root hash
# and from all nested hashes.
#
...
...
activesupport/lib/active_support/values/time_zone.rb
浏览文件 @
b1b9a0ae
...
...
@@ -346,14 +346,14 @@ def self.find_tzinfo(name)
class
<<
self
alias_method
:create
,
:new
# Return a TimeZone instance with the given name, or +nil+ if no
# Return
s
a TimeZone instance with the given name, or +nil+ if no
# such TimeZone instance exists. (This exists to support the use of
# this class with the +composed_of+ macro.)
def
new
(
name
)
self
[
name
]
end
# Return an array of all TimeZone objects. There are multiple
# Return
s
an array of all TimeZone objects. There are multiple
# TimeZone objects per time zone, in many cases, to make it easier
# for users to find their own time zone.
def
all
...
...
railties/lib/rails/generators/base.rb
浏览文件 @
b1b9a0ae
...
...
@@ -296,7 +296,7 @@ def self.generator_name
end
end
# Return the default value for the option name given doing a lookup in
# Return
s
the default value for the option name given doing a lookup in
# Rails::Generators.options.
def
self
.
default_value_for_option
(
name
,
options
)
default_for_option
(
Rails
::
Generators
.
options
,
name
,
options
,
options
[
:default
])
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录