From 01f97846a9919f81d6af6fdd76bdac0fc14572a4 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 16 May 2023 10:11:08 +0200 Subject: [PATCH] Fix a deprecation warning --- features/support/fixtures.rb | 2 +- lib/nos_oignons/reminder.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/support/fixtures.rb b/features/support/fixtures.rb index 3c74f4b..723f351 100644 --- a/features/support/fixtures.rb +++ b/features/support/fixtures.rb @@ -86,7 +86,7 @@ def member_filename_for_id(id) end def render_member_file(locals) - ERB.new(MEMBER_FILE_TEMPLATE, nil, '-').result(OpenStruct.new(locals).instance_eval { binding }) + ERB.new(MEMBER_FILE_TEMPLATE, trim_mode: '-').result(OpenStruct.new(locals).instance_eval { binding }) end def new_id diff --git a/lib/nos_oignons/reminder.rb b/lib/nos_oignons/reminder.rb index d025089..bee6923 100644 --- a/lib/nos_oignons/reminder.rb +++ b/lib/nos_oignons/reminder.rb @@ -109,7 +109,7 @@ module NosOignons def send(member) locals = { :member => member, :days => days } - body = ERB.new(template, nil, '-').result(OpenStruct.new(locals).instance_eval { binding }) + body = ERB.new(template, trim_mode: '-').result(OpenStruct.new(locals).instance_eval { binding }) mail = Mail.new :charset => 'utf-8', :from => NosOignons::BOARD_EMAIL, :to => member.email, -- 2.39.5