Skip to content

Commit

Permalink
Merge pull request #300 from cuchi/master
Browse files Browse the repository at this point in the history
Fix code highlighting issues
  • Loading branch information
koic authored Jan 5, 2022
2 parents 5ffda82 + 281ca95 commit 8d88cb6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -657,15 +657,15 @@ end
Order callback declarations in the order in which they will be executed.
For reference, see https://guides.rubyonrails.org/active_record_callbacks.html#available-callbacks[Available Callbacks].

[source,Ruby]
[source,ruby]
----
#bad
# bad
class Person
after_commit :after_commit_callback
before_validation :before_validation_callback
end
#good
# good
class Person
before_validation :before_validation_callback
after_commit :after_commit_callback
Expand Down Expand Up @@ -978,7 +978,7 @@ User.pick(:name)

Favor the use of `ids` over `pluck(:id)`.

[source,Ruby]
[source,ruby]
----
# bad
User.pluck(:id)
Expand Down

0 comments on commit 8d88cb6

Please sign in to comment.