We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 428a452 + 487fafa commit 166227cCopy full SHA for 166227c
lib/rubocop/cop/rails/belongs_to.rb
@@ -66,7 +66,7 @@ class BelongsTo < Base
66
67
def_node_matcher :match_belongs_to_with_options, <<~PATTERN
68
(send _ :belongs_to ...
69
- (hash <$(pair (sym :required) ${true false}) ...>)
+ (hash <$(pair (sym :required) $boolean) ...>)
70
)
71
PATTERN
72
lib/rubocop/cop/rails/skips_model_validations.rb
@@ -61,7 +61,7 @@ class SkipsModelValidations < Base
61
def_node_matcher :good_touch?, <<~PATTERN
62
{
63
(send (const {nil? cbase} :FileUtils) :touch ...)
64
- (send _ :touch {true false})
+ (send _ :touch boolean)
65
}
0 commit comments