1
0
Fork 0
mirror of https://github.com/varvet/pundit.git synced 2022-11-09 12:30:11 -05:00

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

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