aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2008-05-07 15:36:54 +0200
committerXavier Noria <fxn@hashref.com>2008-05-07 15:36:54 +0200
commit8c937edca001deca824f0bdd7d33ed17cf0b8302 (patch)
tree5cb030840258acc25ef4cf499fa0717d550abff8 /activerecord
parent6507b2d62d3550c0fe3d6cdd456d36920e14063d (diff)
downloadrails-8c937edca001deca824f0bdd7d33ed17cf0b8302.tar.gz
rails-8c937edca001deca824f0bdd7d33ed17cf0b8302.tar.bz2
rails-8c937edca001deca824f0bdd7d33ed17cf0b8302.zip
fixed markup
Diffstat (limited to 'activerecord')
-rwxr-xr-xactiverecord/lib/active_record/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index a4054b69f0..c9db3ef7c6 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -235,8 +235,8 @@ module ActiveRecord #:nodoc:
# == Accessing attributes before they have been typecasted
#
# Sometimes you want to be able to read the raw attribute data without having the column-determined typecast run its course first.
- # That can be done by using the <attribute>_before_type_cast accessors that all attributes have. For example, if your Account model
- # has a balance attribute, you can call account.balance_before_type_cast or account.id_before_type_cast.
+ # That can be done by using the <tt><attribute>_before_type_cast</tt> accessors that all attributes have. For example, if your Account model
+ # has a balance attribute, you can call <tt>account.balance_before_type_cast</tt> or <tt>account.id_before_type_cast</tt>.
#
# This is especially useful in validation situations where the user might supply a string for an integer field and you want to display
# the original string back in an error message. Accessing the attribute normally would typecast the string to 0, which isn't what you