File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -657,15 +657,15 @@ end
657657Order callback declarations in the order in which they will be executed.
658658For reference, see https://guides.rubyonrails.org/active_record_callbacks.html#available-callbacks[Available Callbacks].
659659
660- [source,Ruby ]
660+ [source,ruby ]
661661----
662- #bad
662+ # bad
663663class Person
664664 after_commit :after_commit_callback
665665 before_validation :before_validation_callback
666666end
667667
668- #good
668+ # good
669669class Person
670670 before_validation :before_validation_callback
671671 after_commit :after_commit_callback
@@ -978,7 +978,7 @@ User.pick(:name)
978978
979979Favor the use of `ids` over `pluck(:id)`.
980980
981- [source,Ruby ]
981+ [source,ruby ]
982982----
983983# bad
984984User.pluck(:id)
You can’t perform that action at this time.
0 commit comments