Permalink
Browse files

a couple of touches in just committed text

  • Loading branch information...
1 parent 7ca7dad commit 01b18f7f68e09bd74be07b96c3c62fcac21f0eb0 @fxn fxn committed Aug 22, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 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>

0 comments on commit 01b18f7

Please sign in to comment.