diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-01-02 05:13:49 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-01-02 05:13:49 +0900 |
commit | fec66616c7927ee364fb50b256c6101118aa0fd4 (patch) | |
tree | 53ea9cdd3072c00fd109426eb4de841e0fd1f99b | |
parent | 2565c81862a7dc5cc2ab058d7fb25759aab1af7b (diff) | |
download | rails-fec66616c7927ee364fb50b256c6101118aa0fd4.tar.gz rails-fec66616c7927ee364fb50b256c6101118aa0fd4.tar.bz2 rails-fec66616c7927ee364fb50b256c6101118aa0fd4.zip |
find_or_initialize_by is deprecated in AR 4
-rw-r--r-- | activerecord/lib/active_record/base.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 0a3fdef5a5..bf5793d454 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -179,13 +179,6 @@ module ActiveRecord #:nodoc: # # Payment.order("created_on").find_by_amount(50) # - # Use the <tt>find_or_initialize_by_</tt> finder if you want to return a new record without - # saving it first. Protected attributes won't be set unless they are given in a block. - # - # # No 'Winter' tag exists - # winter = Tag.find_or_initialize_by_name("Winter") - # winter.persisted? # false - # # == Saving arrays, hashes, and other non-mappable objects in text columns # # Active Record can serialize any object in text columns using YAML. To do so, you must |