aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_support_core_extensions.md
diff options
context:
space:
mode:
authorHendy Tanata <htanata@gmail.com>2014-02-27 15:46:27 -0800
committerHendy Tanata <htanata@gmail.com>2014-05-16 17:15:00 -0700
commitf52a13cdf457a4163de60c04801bc77954124a56 (patch)
treee7a6362978a850f7ea57557a2b72ea4d75a3b8b4 /guides/source/active_support_core_extensions.md
parentfd119467b66d98de98d8d128382ba551c5d7a3fa (diff)
downloadrails-f52a13cdf457a4163de60c04801bc77954124a56.tar.gz
rails-f52a13cdf457a4163de60c04801bc77954124a56.tar.bz2
rails-f52a13cdf457a4163de60c04801bc77954124a56.zip
Replace first person point of view on guides.
[skip ci]
Diffstat (limited to 'guides/source/active_support_core_extensions.md')
-rw-r--r--guides/source/active_support_core_extensions.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md
index 8d0d6d260d..dfe9d30698 100644
--- a/guides/source/active_support_core_extensions.md
+++ b/guides/source/active_support_core_extensions.md
@@ -572,12 +572,12 @@ NOTE: Defined in `active_support/core_ext/module/aliasing.rb`.
#### `alias_attribute`
-Model attributes have a reader, a writer, and a predicate. You can alias 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 (my mnemonic is they go in the same order as if you did an assignment):
+Model attributes have a reader, a writer, and a predicate. You can alias 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 (one mnemonic is that they go in the same order as if you did an assignment):
```ruby
class User < ActiveRecord::Base
- # let me refer to the email column as "login",
- # possibly meaningful for authentication code
+ # You can refer to the email column as "login".
+ # This can be meaningful for authentication code.
alias_attribute :login, :email
end
```