diff options
author | Ahmad Al-kheat <wisamfaithful@gmail.com> | 2015-03-11 10:21:17 -0400 |
---|---|---|
committer | Ahmad Al-kheat <wisamfaithful@gmail.com> | 2015-03-11 10:21:17 -0400 |
commit | eb9f0a0d14fe5b42b215d57865c9b9b768b49503 (patch) | |
tree | 031381c26fbc9d5ced7d0f8ff910c095de07daf4 | |
parent | edbc9468d54dba47ca10e1b53c5725d6bd6c50e5 (diff) | |
download | rails-eb9f0a0d14fe5b42b215d57865c9b9b768b49503.tar.gz rails-eb9f0a0d14fe5b42b215d57865c9b9b768b49503.tar.bz2 rails-eb9f0a0d14fe5b42b215d57865c9b9b768b49503.zip |
Unnecessary usage of self in the guides
I deleted self from the callbacks guides code example because it's unnecessary and this way it's more like the other examples where self was not used.
-rw-r--r-- | guides/source/active_record_callbacks.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_callbacks.md b/guides/source/active_record_callbacks.md index 9d3a8c3af6..ca1963d4d8 100644 --- a/guides/source/active_record_callbacks.md +++ b/guides/source/active_record_callbacks.md @@ -68,7 +68,7 @@ class User < ActiveRecord::Base protected def normalize_name - self.name = self.name.downcase.titleize + self.name = name.downcase.titleize end def set_location |