aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2019-03-25 12:46:24 +0530
committerGitHub <noreply@github.com>2019-03-25 12:46:24 +0530
commit598ba6e4192f03557681852f158c2af7e02dcb0c (patch)
tree02c7c25b5228663d960e1f5a4bada07a918f39d8
parent6a5c8b91998c56e50b5cc934d968947cd319f735 (diff)
parent2b205c8fa7bf9ed876b59c0e14c06696ce3fc6b7 (diff)
downloadrails-598ba6e4192f03557681852f158c2af7e02dcb0c.tar.gz
rails-598ba6e4192f03557681852f158c2af7e02dcb0c.tar.bz2
rails-598ba6e4192f03557681852f158c2af7e02dcb0c.zip
Merge pull request #35739 from sharang-d/unique_by-changes
Format 'RETURNING' text in the docs [ci skip]
-rw-r--r--activerecord/lib/active_record/persistence.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index ba03a3773a..7705cefa59 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -88,7 +88,7 @@ module ActiveRecord
# (Postgres-only) An array of attributes to return for all successfully
# inserted records, which by default is the primary key.
# Pass <tt>returning: %w[ id name ]</tt> for both id and name
- # or <tt>returning: false</tt> to omit the underlying RETURNING SQL
+ # or <tt>returning: false</tt> to omit the underlying <tt>RETURNING</tt> SQL
# clause entirely.
#
# [:unique_by]
@@ -157,7 +157,7 @@ module ActiveRecord
# (Postgres-only) An array of attributes to return for all successfully
# inserted records, which by default is the primary key.
# Pass <tt>returning: %w[ id name ]</tt> for both id and name
- # or <tt>returning: false</tt> to omit the underlying RETURNING SQL
+ # or <tt>returning: false</tt> to omit the underlying <tt>RETURNING</tt> SQL
# clause entirely.
#
# ==== Examples
@@ -205,7 +205,7 @@ module ActiveRecord
# (Postgres-only) An array of attributes to return for all successfully
# inserted records, which by default is the primary key.
# Pass <tt>returning: %w[ id name ]</tt> for both id and name
- # or <tt>returning: false</tt> to omit the underlying RETURNING SQL
+ # or <tt>returning: false</tt> to omit the underlying <tt>RETURNING</tt> SQL
# clause entirely.
#
# [:unique_by]