From bffacccc6a60d9f47b7ac2e7edafda0a66f59ddd Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Wed, 3 Apr 2019 12:46:53 +0900 Subject: Fix the markup for `insert_all` and `upsert_all` docs [ci skip] --- activerecord/lib/active_record/persistence.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'activerecord/lib/active_record/persistence.rb') diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index 7705cefa59..4ef0c1b6a6 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -107,9 +107,9 @@ module ActiveRecord # unique_by: %i[ author_id name ] # unique_by: :index_books_on_isbn # - # Because it relies on the index information from the database - # :unique_by is recommended to be paired with - # Active Record's schema_cache. + # Because it relies on the index information from the database + # :unique_by is recommended to be paired with + # Active Record's schema_cache. # # ==== Example # @@ -224,9 +224,9 @@ module ActiveRecord # unique_by: %i[ author_id name ] # unique_by: :index_books_on_isbn # - # Because it relies on the index information from the database - # :unique_by is recommended to be paired with - # Active Record's schema_cache. + # Because it relies on the index information from the database + # :unique_by is recommended to be paired with + # Active Record's schema_cache. # # ==== Examples # @@ -238,7 +238,7 @@ module ActiveRecord # { title: "Eloquent Ruby", author: "Russ", isbn: "1" } # ], unique_by: :isbn) # - # Book.find_by(isbn: "1").title # => "Eloquent Ruby" + # Book.find_by(isbn: "1").title # => "Eloquent Ruby" def upsert_all(attributes, returning: nil, unique_by: nil) InsertAll.new(self, attributes, on_duplicate: :update, returning: returning, unique_by: unique_by).execute end -- cgit v1.2.3