@@ -122,7 +122,7 @@ def insert(attributes, returning: nil, unique_by: nil, record_timestamps: nil)
122
122
# clause entirely.
123
123
#
124
124
# You can also pass an SQL string if you need more control on the return values
125
- # (for example, <tt>returning: "id, name as new_name"</tt>).
125
+ # (for example, <tt>returning: Arel.sql( "id, name as new_name") </tt>).
126
126
#
127
127
# [:unique_by]
128
128
# (PostgreSQL and SQLite only) By default rows are considered to be unique
@@ -212,7 +212,7 @@ def insert!(attributes, returning: nil, record_timestamps: nil)
212
212
# clause entirely.
213
213
#
214
214
# You can also pass an SQL string if you need more control on the return values
215
- # (for example, <tt>returning: "id, name as new_name"</tt>).
215
+ # (for example, <tt>returning: Arel.sql( "id, name as new_name") </tt>).
216
216
#
217
217
# [:record_timestamps]
218
218
# By default, automatic setting of timestamp columns is controlled by
@@ -278,7 +278,7 @@ def upsert(attributes, on_duplicate: :update, returning: nil, unique_by: nil, re
278
278
# clause entirely.
279
279
#
280
280
# You can also pass an SQL string if you need more control on the return values
281
- # (for example, <tt>returning: "id, name as new_name"</tt>).
281
+ # (for example, <tt>returning: Arel.sql( "id, name as new_name") </tt>).
282
282
#
283
283
# [:unique_by]
284
284
# (PostgreSQL and SQLite only) By default rows are considered to be unique
0 commit comments