From 01b18f7f68e09bd74be07b96c3c62fcac21f0eb0 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sat, 22 Aug 2009 02:13:54 +0200 Subject: a couple of touches in just committed text --- railties/guides/source/active_support_overview.textile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/railties/guides/source/active_support_overview.textile b/railties/guides/source/active_support_overview.textile index bad23fe6d9..22e833771e 100644 --- a/railties/guides/source/active_support_overview.textile +++ b/railties/guides/source/active_support_overview.textile @@ -486,12 +486,12 @@ Rails uses +alias_method_chain+ all over the code base. For example validations h5. +alias_attribute+ -Model attributes have a reader, a writer, and a predicate. You can aliase an attribute like that and have the corresponding three methods defined for you in one shot. As in other aliasing methods, the new name is the first argument, and the old name is the second (same order than in assigments is my mnemonic): +Model attributes have a reader, a writer, and a predicate. You can aliase a model attribute having the corresponding three methods defined for you in one shot. As in other aliasing methods, the new name is the first argument, and the old name is the second (same order than in assigments is my mnemonic): class User < ActiveRecord::Base # let me refer to the email column as "login", - # much meaningful for authetication code + # much meaningful for authentication code alias_attribute :login, :email end -- cgit v1.2.3