diff options
author | mjy <diapriid@gmail.com> | 2011-03-03 13:28:26 -0500 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-03-05 11:56:33 +0100 |
commit | 045ca303947e7e9209cee4b3fdede05f6dbb02c4 (patch) | |
tree | 49fcabf3e10579fbce2254dcd655137298a04a47 /activerecord/lib/active_record | |
parent | d735672aa5c73e314345277f001b55d13859303e (diff) | |
download | rails-045ca303947e7e9209cee4b3fdede05f6dbb02c4.tar.gz rails-045ca303947e7e9209cee4b3fdede05f6dbb02c4.tar.bz2 rails-045ca303947e7e9209cee4b3fdede05f6dbb02c4.zip |
fixes a missmatched column in example
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index b3204b2bda..4db08c774b 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -463,7 +463,7 @@ module ActiveRecord #:nodoc: # # # You can use the same string replacement techniques as you can with ActiveRecord#find # Post.find_by_sql ["SELECT title FROM posts WHERE author = ? AND created > ?", author_id, start_date] - # > [#<Post:0x36bff9c @attributes={"first_name"=>"The Cheap Man Buys Twice"}>, ...] + # > [#<Post:0x36bff9c @attributes={"title"=>"The Cheap Man Buys Twice"}>, ...] def find_by_sql(sql, binds = []) connection.select_all(sanitize_sql(sql), "#{name} Load", binds).collect! { |record| instantiate(record) } end |