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
657
657
Order callback declarations in the order in which they will be executed.
658
658
For reference, see https://guides.rubyonrails.org/active_record_callbacks.html#available-callbacks[Available Callbacks].
659
659
660
- [source,Ruby ]
660
+ [source,ruby ]
661
661
----
662
- #bad
662
+ # bad
663
663
class Person
664
664
after_commit :after_commit_callback
665
665
before_validation :before_validation_callback
666
666
end
667
667
668
- #good
668
+ # good
669
669
class Person
670
670
before_validation :before_validation_callback
671
671
after_commit :after_commit_callback
@@ -978,7 +978,7 @@ User.pick(:name)
978
978
979
979
Favor the use of `ids` over `pluck(:id)`.
980
980
981
- [source,Ruby ]
981
+ [source,ruby ]
982
982
----
983
983
# bad
984
984
User.pluck(:id)
You can’t perform that action at this time.
0 commit comments