Skip to content

Commit

Permalink
Update syntax to remove deprecated behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanderhoof committed Sep 19, 2023
1 parent 05b1634 commit aa2a126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/domain/factories/renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def initialize(render_engine: ERB)
end

def render(template:, variables:)
@success.new(@render_engine.new(template, nil, '-').result_with_hash(variables))
@success.new(@render_engine.new(template, trim_mode: '-').result_with_hash(variables))

# If variable in template is missing from variable list
rescue NameError => e
Expand Down

0 comments on commit aa2a126

Please sign in to comment.