File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ module YourCoolApp
82
82
end
83
83
` ` `
84
84
85
- It uses `rubocop -A` to apply `Style/FrozenStringLiteralComment` and other unsafe autocorretion cops.
85
+ It uses `rubocop -A` to apply `Style/FrozenStringLiteralComment` and other unsafe autocorrection cops.
86
86
` rubocop -A` is unsafe autocorrection, but code generated by default is simple and less likely to
87
87
be incompatible with `rubocop -A`. If you have problems you can replace it with `rubocop -a` instead.
88
88
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ The cop is configurable and can enforce the use of the older
108
108
something_filter methods or the newer something_action methods.
109
109
110
110
IMPORTANT: This cop is deprecated. Because the `*_filter` methods were removed in Rails 4.2,
111
- and that Rals version is no longer supported by RuboCop Rails. This cop will be removed in RuboCop Rails 3.0.
111
+ and that Rails version is no longer supported by RuboCop Rails. This cop will be removed in RuboCop Rails 3.0.
112
112
113
113
=== Examples
114
114
Original file line number Diff line number Diff line change 34
34
== Rails configuration tip
35
35
36
36
If you are using Rails 6.1 or newer, add the following `config.generators.after_generate` setting to
37
- your config/application.rb to apply RuboCop autocorretion to code generated by `bin/rails g`.
37
+ your config/application.rb to apply RuboCop autocorrection to code generated by `bin/rails g`.
38
38
39
39
[source,ruby]
40
40
----
@@ -50,6 +50,6 @@ module YourCoolApp
50
50
end
51
51
----
52
52
53
- It uses `rubocop -A` to apply `Style/FrozenStringLiteralComment` and other unsafe autocorretion cops.
53
+ It uses `rubocop -A` to apply `Style/FrozenStringLiteralComment` and other unsafe autocorrection cops.
54
54
`rubocop -A` is unsafe autocorrection, but code generated by default is simple and less likely to
55
55
be incompatible with `rubocop -A`. If you have problems you can replace it with `rubocop -a` instead.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ module Rails
9
9
# something_filter methods or the newer something_action methods.
10
10
#
11
11
# IMPORTANT: This cop is deprecated. Because the `*_filter` methods were removed in Rails 4.2,
12
- # and that Rals version is no longer supported by RuboCop Rails. This cop will be removed in RuboCop Rails 3.0.
12
+ # and that Rails version is no longer supported by RuboCop Rails. This cop will be removed in RuboCop Rails 3.0.
13
13
#
14
14
# @example EnforcedStyle: action (default)
15
15
# # bad
You can’t perform that action at this time.
0 commit comments