提交 7b0edbb9 编写于 作者: J Jon Leighton

Avoid super; speeds up Model.new by about 12%

上级 e3a4eb4b
......@@ -65,7 +65,7 @@ def increment_lock
end
def attributes_from_column_definition
result = super
result = self.class.column_defaults.dup
# If the locking column has no default value set,
# start the lock version at zero. Note we can't use
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册