Remove meaningless extra stripping of heredoc

Squiggly heredoc is already stripped, so the `strip_heredoc` does not change the string.

Furthermore `strip_heredoc` is not available in early rails application setup, so we shouldn't use it here without `require 'active_support/core_ext/string/strip`
This commit is contained in:
Anders Carling 2022-03-08 17:13:21 +01:00 committed by GitHub
parent d569083cda
commit 67bcc1c401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ module Pundit
class NotDefinedError < Error; end
def self.included(base)
ActiveSupport::Deprecation.warn <<~WARNING.strip_heredoc
ActiveSupport::Deprecation.warn <<~WARNING
'include Pundit' is deprecated. Please use 'include Pundit::Authorization' instead.
WARNING
base.include Authorization