lib/rubocop/cop/rails/read_write_attribute.rb in rubocop-rails-2.4.0 vs lib/rubocop/cop/rails/read_write_attribute.rb in rubocop-rails-2.4.1
- old
+ new
@@ -24,10 +24,10 @@
# x = self[:attr]
# self[:attr] = val
class ReadWriteAttribute < Cop
MSG = 'Prefer `%<prefer>s` over `%<current>s`.'
- def_node_matcher :read_write_attribute?, <<-PATTERN
+ def_node_matcher :read_write_attribute?, <<~PATTERN
{
(send nil? :read_attribute _)
(send nil? :write_attribute _ _)
}
PATTERN