aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/active_support_overview.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-08-22 02:13:54 +0200
committerXavier Noria <fxn@hashref.com>2009-08-22 02:13:54 +0200
commit01b18f7f68e09bd74be07b96c3c62fcac21f0eb0 (patch)
tree349c4d59c9859b20268a8610bc4f3e54e02b3d87 /railties/guides/source/active_support_overview.textile
parent7ca7dad434e0a1461302045399a4dee4af48b5b8 (diff)
downloadrails-01b18f7f68e09bd74be07b96c3c62fcac21f0eb0.tar.gz
rails-01b18f7f68e09bd74be07b96c3c62fcac21f0eb0.tar.bz2
rails-01b18f7f68e09bd74be07b96c3c62fcac21f0eb0.zip
a couple of touches in just committed text
Diffstat (limited to 'railties/guides/source/active_support_overview.textile')
-rw-r--r--railties/guides/source/active_support_overview.textile4
1 files 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):
<ruby>
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
</ruby>