aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/README
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-09-01 23:37:10 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-09-01 23:37:10 +0000
commit7aa9eed88fdfb1a8010c4ca7468e9ebd527494f1 (patch)
treee736033782ccfe7fa1baade11be59d589cdb24fd /activerecord/README
parent667d8ea2ea6d3a24009c531fefd6b4a78572ded2 (diff)
downloadrails-7aa9eed88fdfb1a8010c4ca7468e9ebd527494f1.tar.gz
rails-7aa9eed88fdfb1a8010c4ca7468e9ebd527494f1.tar.bz2
rails-7aa9eed88fdfb1a8010c4ca7468e9ebd527494f1.zip
Deprecation: update docs. Closes #5998.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4898 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/README')
-rwxr-xr-xactiverecord/README2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/README b/activerecord/README
index 1be4df6189..265d8cc61e 100755
--- a/activerecord/README
+++ b/activerecord/README
@@ -264,7 +264,7 @@ Lots of different finders
next_angle = Firm.find(1)
# SQL: SELECT * FROM companies WHERE id = 1 AND name = 'Next Angle'
- next_angle = Company.find_first "name = 'Next Angle'"
+ next_angle = Company.find(:first, :conditions => "name = 'Next Angle'")
next_angle = Firm.find_by_sql("SELECT * FROM companies WHERE id = 1").first