aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-01-26 17:41:56 +0100
committerXavier Noria <fxn@hashref.com>2013-01-26 17:41:56 +0100
commit0b5d3f32732f637fe29848a3597852dce9662c6b (patch)
treea0e75011bd90c1d7cde73a89b680c52ab0a589ec /activerecord/lib/active_record/base.rb
parent474e7dd82af030fb22ab5a586976d21b3497882a (diff)
parent4313461587254fd8e5b5a8ea7dfc9f0230c70ecb (diff)
downloadrails-0b5d3f32732f637fe29848a3597852dce9662c6b.tar.gz
rails-0b5d3f32732f637fe29848a3597852dce9662c6b.tar.bz2
rails-0b5d3f32732f637fe29848a3597852dce9662c6b.zip
Merge remote-tracking branch 'docrails/master'
Conflicts: actionpack/lib/action_view/helpers/form_options_helper.rb guides/code/getting_started/app/controllers/comments_controller.rb
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r--activerecord/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 bf5793d454..e262401da6 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -162,8 +162,8 @@ module ActiveRecord #:nodoc:
#
# Dynamic attribute-based finders are a cleaner way of getting (and/or creating) objects
# by simple queries without turning to SQL. They work by appending the name of an attribute
- # to <tt>find_by_</tt> # like <tt>Person.find_by_user_name</tt>.
- # Instead of writing # <tt>Person.where(user_name: user_name).first</tt>, you just do
+ # to <tt>find_by_</tt> like <tt>Person.find_by_user_name</tt>.
+ # Instead of writing <tt>Person.where(user_name: user_name).first</tt>, you just do
# <tt>Person.find_by_user_name(user_name)</tt>.
#
# It's possible to add an exclamation point (!) on the end of the dynamic finders to get them to raise an