diff options
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/associations.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index d4bc2ed9ef..45d23eac1d 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -132,8 +132,7 @@ module ActiveRecord # first_name, *last_name = name.split # last_name = last_name.join " " # - # find_by_first_name_and_last_name(first_name, last_name) || - # create({ :first_name => first_name, :last_name => last_name }) + # find_or_create_by_first_name_and_last_name(first_name, last_name) # end # end # end @@ -149,8 +148,7 @@ module ActiveRecord # first_name, *last_name = name.split # last_name = last_name.join " " # - # find_by_first_name_and_last_name(first_name, last_name) || - # create({ :first_name => first_name, :last_name => last_name }) + # find_or_create_by_first_name_and_last_name(first_name, last_name) # end # end # |