Skip to content

Commit

Permalink
Fixes for safe_level, trim_mode argument of ERB.new is deprecated war…
Browse files Browse the repository at this point in the history
…ning.
  • Loading branch information
piyushawasthi committed Jul 19, 2024
1 parent 3d2910c commit c5b65e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/warbler/jar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def add_with_pathmaps(config, f, map_type)

def expand_erb(file, config)
require 'erb'
erb = ERB.new(File.read(file), nil, '-')
erb = ERB.new(File.read(file), trim_mode: '-')
StringIO.new(erb.result(erb_binding(config)))
end

Expand Down

0 comments on commit c5b65e0

Please sign in to comment.