diff options
author | mjy <diapriid@gmail.com> | 2011-03-03 13:28:26 -0500 |
---|---|---|
committer | mjy <diapriid@gmail.com> | 2011-03-03 13:28:26 -0500 |
commit | 3b7cf234179a3ce09f4a7a9412c15fd82cf1e71c (patch) | |
tree | 3b6fe0252def135fb77a1237a8eae212034b06a2 | |
parent | b4b7171d604702975b5a53afa6bf02baeb17f1b2 (diff) | |
download | rails-3b7cf234179a3ce09f4a7a9412c15fd82cf1e71c.tar.gz rails-3b7cf234179a3ce09f4a7a9412c15fd82cf1e71c.tar.bz2 rails-3b7cf234179a3ce09f4a7a9412c15fd82cf1e71c.zip |
fixes a missmatched column in example
-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 5c4998806b..e530d2ff87 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 |