Background: When you use referer, it would represent the actual naming of the misspelled header. I would argue, that this is nothing we need to take care of when calling request.referrer.
Example where it looks strange to me, but would be the preferred style right now:
referrer = request.referer
Please vote with 👎🏼 to keep the current config or with 👍🏼 to change the config.
Docs: https://www.rubydoc.info/gems/rubocop/0.49.1/RuboCop/Cop/Rails/RequestReferer
Current configuration (default from https://github.com/rubocop/rubocop-rails)
Suggested EnforcedStyle
Background: When you use
referer
, it would represent the actual naming of the misspelled header. I would argue, that this is nothing we need to take care of when callingrequest.referrer
.Example where it looks strange to me, but would be the preferred style right now:
Please vote with 👎🏼 to keep the current config or with 👍🏼 to change the config.