Skip to content

Commit d37c533

Browse files
authored
Merge pull request rails#51529 from p8/guides/properyl-escape-sql-comments-in-examples
Use SQL comments for SQL code blocks in guides [ci-skip]
2 parents 7661c17 + 21ae703 commit d37c533

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guides/source/active_record_basics.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,16 +465,16 @@ book = Book.take
465465
The above results in the following SQL:
466466

467467
```sql
468-
# Book.all
468+
-- Book.all
469469
SELECT "books".* FROM "books"
470470

471-
# Book.first
471+
-- Book.first
472472
SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT ? [["LIMIT", 1]]
473473

474-
# Book.last
474+
-- Book.last
475475
SELECT "books".* FROM "books" ORDER BY "books"."id" DESC LIMIT ? [["LIMIT", 1]]
476476

477-
# Book.take
477+
-- Book.take
478478
SELECT "books".* FROM "books" LIMIT ? [["LIMIT", 1]]
479479
```
480480

0 commit comments

Comments
 (0)