Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
Follow up to #575 (comment).
  • Loading branch information
koic committed Oct 12, 2021
1 parent 1ca074e commit e0b4fce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/cops_rails.adoc
Expand Up @@ -83,10 +83,10 @@ are more clear and easier to read.
[source,ruby]
----
#bad
Book.update_attributes!(author: 'Alice')
book.update_attributes!(author: 'Alice')
#good
Book.update!(author: 'Alice')
book.update!(author: 'Alice')
----

== Rails/ActiveRecordCallbacksOrder
Expand Down
4 changes: 2 additions & 2 deletions lib/rubocop/cop/rails/active_record_aliases.rb
Expand Up @@ -8,10 +8,10 @@ module Rails
#
# @example
# #bad
# Book.update_attributes!(author: 'Alice')
# book.update_attributes!(author: 'Alice')
#
# #good
# Book.update!(author: 'Alice')
# book.update!(author: 'Alice')
class ActiveRecordAliases < Base
extend AutoCorrector

Expand Down

0 comments on commit e0b4fce

Please sign in to comment.