Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
dfebdb1b
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,发现更多精彩内容 >>
提交
dfebdb1b
编写于
9月 16, 2010
作者:
A
Alexey Mahotkin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Tiny fixes to rdoc
上级
6f3ac425
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
9 deletion
+9
-9
actionpack/lib/action_view/base.rb
actionpack/lib/action_view/base.rb
+1
-1
actionpack/lib/action_view/helpers/javascript_helper.rb
actionpack/lib/action_view/helpers/javascript_helper.rb
+1
-1
actionpack/lib/action_view/helpers/prototype_helper.rb
actionpack/lib/action_view/helpers/prototype_helper.rb
+4
-4
activemodel/lib/active_model/validator.rb
activemodel/lib/active_model/validator.rb
+2
-2
activeresource/test/cases/base/schema_test.rb
activeresource/test/cases/base/schema_test.rb
+1
-1
未找到文件。
actionpack/lib/action_view/base.rb
浏览文件 @
dfebdb1b
...
...
@@ -153,7 +153,7 @@ module ActionView #:nodoc:
#
# This refreshes the sidebar, removes a person element and highlights the user list.
#
# See the ActionView::Helpers::PrototypeHelper::GeneratorMethods documentation for more details.
# See the ActionView::Helpers::PrototypeHelper::
JavaScriptGenerator::
GeneratorMethods documentation for more details.
class
Base
module
Subclasses
end
...
...
actionpack/lib/action_view/helpers/javascript_helper.rb
浏览文件 @
dfebdb1b
...
...
@@ -65,7 +65,7 @@ def escape_javascript(javascript)
# //]]>
# </script>
#
# +html_options+ may be a hash of attributes for the <tt><script></tt>
# +html_options+ may be a hash of attributes for the <tt>
\
<script></tt>
# tag. Example:
# javascript_tag "alert('All is good')", :defer => 'defer'
# # => <script defer="defer" type="text/javascript">alert('All is good')</script>
...
...
actionpack/lib/action_view/helpers/prototype_helper.rb
浏览文件 @
dfebdb1b
...
...
@@ -161,7 +161,7 @@ def include_helpers_from_context
# JavaScriptGenerator generates blocks of JavaScript code that allow you
# to change the content and presentation of multiple DOM elements. Use
# this in your Ajax response bodies, either in a <tt><script></tt> tag
# this in your Ajax response bodies, either in a <tt>
\
<script></tt> tag
# or as plain JavaScript sent with a Content-type of "text/javascript".
#
# Create new instances with PrototypeHelper#update_page or with
...
...
@@ -224,7 +224,7 @@ def include_helpers_from_context
#
# You can also use PrototypeHelper#update_page_tag instead of
# PrototypeHelper#update_page to wrap the generated JavaScript in a
# <tt><script></tt> tag.
# <tt>
\
<script></tt> tag.
module
GeneratorMethods
def
to_s
#:nodoc:
(
@lines
*
$/
).
tap
do
|
javascript
|
...
...
@@ -583,10 +583,10 @@ def update_page(&block)
end
# Works like update_page but wraps the generated JavaScript in a
# <tt><script></tt> tag. Use this to include generated JavaScript in an
# <tt>
\
<script></tt> tag. Use this to include generated JavaScript in an
# ERb template. See JavaScriptGenerator for more information.
#
# +html_options+ may be a hash of <tt><script></tt> attributes to be
# +html_options+ may be a hash of <tt>
\
<script></tt> attributes to be
# passed to ActionView::Helpers::JavaScriptHelper#javascript_tag.
def
update_page_tag
(
html_options
=
{},
&
block
)
javascript_tag
update_page
(
&
block
),
html_options
...
...
activemodel/lib/active_model/validator.rb
浏览文件 @
dfebdb1b
...
...
@@ -7,7 +7,7 @@ module ActiveModel #:nodoc:
# == Active Model Validator
#
# A simple base class that can be used along with
#
+ActiveModel::Validations::ClassMethods.validates_with+
#
ActiveModel::Validations::ClassMethods.validates_with
#
# class Person
# include ActiveModel::Validations
...
...
@@ -42,7 +42,7 @@ module ActiveModel #:nodoc:
# end
# end
#
# To cause a validation error, you must add to the <tt>record<tt>'s errors directly
# To cause a validation error, you must add to the <tt>record<
/
tt>'s errors directly
# from within the validators message
#
# class MyValidator < ActiveModel::Validator
...
...
activeresource/test/cases/base/schema_test.rb
浏览文件 @
dfebdb1b
...
...
@@ -399,7 +399,7 @@ def teardown
assert_not_equal
matz
.
known_attributes
,
rick
.
known_attributes
,
"should have had different known attributes too"
end
test
"setting schema then fetching should add schema attributes to the intance attributes"
do
test
"setting schema then fetching should add schema attributes to the in
s
tance attributes"
do
# an attribute in common with fetched instance and one that isn't
new_schema
=
{
'name'
=>
'string'
,
'my_strange_attribute'
=>
'string'
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录