Ruby
China
Topics
招聘
Wiki
酷站
Gems
Sign Up
Sign In
He
@vary_
Member
NO. 18857 /
2015-05-17
[email protected]
0
Topics
/
1
Replies
0
Followers
0
Following
0
Favorites
No GitHub.
Overview
Topics
Replies
Favorites
Following
Followers
ActiveRecord 中的 Callback 浅析
at
May 20, 2015
一直对回调这一点有疑问
before_save
{
self
.
email
=
email
.
downcase
}
对于这段代码,这里的 self 为什么会是实例而不是这个类本身?