Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
c73f97b0
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,发现更多精彩内容 >>
提交
c73f97b0
编写于
6月 23, 2014
作者:
Z
Zachary Scott
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #15880 from davetoxa/patch-1
s/overriden/overridden [ci skip]
上级
936fd4c1
e2960fb2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
5 deletion
+5
-5
activerecord/lib/active_record/attributes.rb
activerecord/lib/active_record/attributes.rb
+1
-1
activerecord/lib/active_record/type/value.rb
activerecord/lib/active_record/type/value.rb
+1
-1
guides/source/layouts_and_rendering.md
guides/source/layouts_and_rendering.md
+1
-1
guides/source/upgrading_ruby_on_rails.md
guides/source/upgrading_ruby_on_rails.md
+2
-2
未找到文件。
activerecord/lib/active_record/attributes.rb
浏览文件 @
c73f97b0
...
...
@@ -27,7 +27,7 @@ module ClassMethods
#
# ==== Examples
#
# The type detected by Active Record can be overriden.
# The type detected by Active Record can be overrid
d
en.
#
# # db/schema.rb
# create_table :store_listings, force: true do |t|
...
...
activerecord/lib/active_record/type/value.rb
浏览文件 @
c73f97b0
...
...
@@ -63,7 +63,7 @@ def changed_in_place?(*) # :nodoc:
private
# Takes an input from the database, or from attribute setters,
# and casts it to a type appropriate for this object. This method
# should not be overriden by subclasses. Instead, override `cast_value`.
# should not be overrid
d
en by subclasses. Instead, override `cast_value`.
def
type_cast
(
value
)
# :api: public
cast_value
(
value
)
unless
value
.
nil?
end
...
...
guides/source/layouts_and_rendering.md
浏览文件 @
c73f97b0
...
...
@@ -308,7 +308,7 @@ TIP: This option should be used only if you don't care about the content type of
the response. Using
`:plain`
or
`:html`
might be more appropriate in most of the
time.
NOTE: Unless overriden, your response returned from this render option will be
NOTE: Unless overrid
d
en, your response returned from this render option will be
`text/html`
, as that is the default content type of Action Dispatch response.
#### Options for `render`
...
...
guides/source/upgrading_ruby_on_rails.md
浏览文件 @
c73f97b0
...
...
@@ -315,10 +315,10 @@ authors.compact!
### Changes on Default Scopes
Default scopes are no longer overriden by chained conditions.
Default scopes are no longer overrid
d
en by chained conditions.
In previous versions when you defined a
`default_scope`
in a model
it was overriden by chained conditions in the same field. Now it
it was overrid
d
en by chained conditions in the same field. Now it
is merged like any other scope.
Before:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录