Skip to content
This repository
Browse code

fixes a missmatched column in example

  • Loading branch information...
commit 3b7cf234179a3ce09f4a7a9412c15fd82cf1e71c 1 parent b4b7171
Matt authored March 03, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  activerecord/lib/active_record/base.rb
2  activerecord/lib/active_record/base.rb
@@ -463,7 +463,7 @@ class << self # Class methods
463 463
       #
464 464
       #   # You can use the same string replacement techniques as you can with ActiveRecord#find
465 465
       #   Post.find_by_sql ["SELECT title FROM posts WHERE author = ? AND created > ?", author_id, start_date]
466  
-      #   > [#<Post:0x36bff9c @attributes={"first_name"=>"The Cheap Man Buys Twice"}>, ...]
  466
+      #   > [#<Post:0x36bff9c @attributes={"title"=>"The Cheap Man Buys Twice"}>, ...]
467 467
       def find_by_sql(sql, binds = [])
468 468
         connection.select_all(sanitize_sql(sql), "#{name} Load", binds).collect! { |record| instantiate(record) }
469 469
       end

0 notes on commit 3b7cf23

Please sign in to comment.
Something went wrong with that request. Please try again.