Skip to content

Commit e0b4fce

Browse files
committed
Fix a typo
Follow up to #575 (comment).
1 parent 1ca074e commit e0b4fce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/modules/ROOT/pages/cops_rails.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ are more clear and easier to read.
8383
[source,ruby]
8484
----
8585
#bad
86-
Book.update_attributes!(author: 'Alice')
86+
book.update_attributes!(author: 'Alice')
8787
8888
#good
89-
Book.update!(author: 'Alice')
89+
book.update!(author: 'Alice')
9090
----
9191

9292
== Rails/ActiveRecordCallbacksOrder

lib/rubocop/cop/rails/active_record_aliases.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ module Rails
88
#
99
# @example
1010
# #bad
11-
# Book.update_attributes!(author: 'Alice')
11+
# book.update_attributes!(author: 'Alice')
1212
#
1313
# #good
14-
# Book.update!(author: 'Alice')
14+
# book.update!(author: 'Alice')
1515
class ActiveRecordAliases < Base
1616
extend AutoCorrector
1717

0 commit comments

Comments
 (0)