From eb9f0a0d14fe5b42b215d57865c9b9b768b49503 Mon Sep 17 00:00:00 2001 From: Ahmad Al-kheat Date: Wed, 11 Mar 2015 10:21:17 -0400 Subject: [PATCH] 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. --- guides/source/active_record_callbacks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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