app/inputs/deletable_attachment_input.rb
Prefer to_s
over string interpolation. Wontfix
Wontfix
if object.send("#{attribute_name}").attached?
- Read upRead up
- Exclude checks
This cop checks for strings that are just an interpolated expression.
Example:
# bad
"#{@var}"
# good
@var.to_s
# good if @var is already a String
@var