Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

find_or_initialize_by is deprecated in AR 4

  • Loading branch information...
commit fec66616c7927ee364fb50b256c6101118aa0fd4 1 parent 2565c81
Akira Matsuda amatsuda authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 activerecord/lib/active_record/base.rb
7 activerecord/lib/active_record/base.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.