Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
49bc23f6
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,发现更多精彩内容 >>
提交
49bc23f6
编写于
10月 16, 2013
作者:
R
Rafael Mendonça França
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #12558 from lucasmazza/changelog-fixes
Fix code blocks identation on AR and AS CHANGELOGs
上级
fee49a10
2f1c9c8d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
12 deletion
+12
-12
activerecord/CHANGELOG.md
activerecord/CHANGELOG.md
+6
-6
activesupport/CHANGELOG.md
activesupport/CHANGELOG.md
+6
-6
未找到文件。
activerecord/CHANGELOG.md
浏览文件 @
49bc23f6
...
...
@@ -342,13 +342,13 @@
*
Reset @column_defaults when assigning
`locking_column`
.
We had a potential problem. For example:
class Post < ActiveRecord::Base
self.column_defaults # if we call this unintentionally before setting locking_column ...
self.locking_column = 'my_locking_column'
end
class Post < ActiveRecord::Base
self.column_defaults # if we call this unintentionally before setting locking_column ...
self.locking_column = 'my_locking_column'
end
Post.column_defaults["my_locking_column"]
=> nil # expected value is 0 !
Post.column_defaults["my_locking_column"]
=> nil # expected value is 0 !
*kennyj*
...
...
activesupport/CHANGELOG.md
浏览文件 @
49bc23f6
...
...
@@ -22,14 +22,14 @@
You can do this:
class JokeSubscriber < ActiveSupport::Subscriber
# This is much easier to read!
attach_to "active_record"
class JokeSubscriber < ActiveSupport::Subscriber
# This is much easier to read!
attach_to "active_record"
def sql(event)
puts "A rabbi and a priest walk into a bar..."
def sql(event)
puts "A rabbi and a priest walk into a bar..."
end
end
end
This should make it easier to read and understand these subscribers.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录