lib/rubocop/cop/rails/request_referer.rb in rubocop-rails-2.4.0 vs lib/rubocop/cop/rails/request_referer.rb in rubocop-rails-2.4.1
- old
+ new
@@ -23,10 +23,10 @@
include ConfigurableEnforcedStyle
MSG = 'Use `request.%<prefer>s` instead of ' \
'`request.%<current>s`.'
- def_node_matcher :referer?, <<-PATTERN
+ def_node_matcher :referer?, <<~PATTERN
(send (send nil? :request) {:referer :referrer})
PATTERN
def on_send(node)
referer?(node) do