Skip to content

Commit

Permalink
Merge pull request #544 from yahonda/use_squiggly_herdoc
Browse files Browse the repository at this point in the history
Use `<<~ `(squiggly heredoc) to address `warning: literal string will be frozen in the future`
  • Loading branch information
yahonda authored Oct 23, 2024
2 parents 261fede + c301515 commit 266ec49
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/sprockets/rails/quiet_assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ def call(env)

private
def raise_logger_silence_error
error = "You have enabled `config.assets.quiet`, but your `Rails.logger`\n"
error << "does not use the `LoggerSilence` module.\n\n"
error << "Please use a compatible logger such as `ActiveSupport::Logger`\n"
error << "to take advantage of quiet asset logging.\n\n"
error = <<~ERROR
You have enabled `config.assets.quiet`, but your `Rails.logger`
does not use the `LoggerSilence` module.
Please use a compatible logger such as `ActiveSupport::Logger`
to take advantage of quiet asset logging.
ERROR

raise LoggerSilenceError, error
end
Expand Down

0 comments on commit 266ec49

Please sign in to comment.