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:
parent
d569083cda
commit
67bcc1c401
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue