From: jvoisin Date: Tue, 16 May 2023 08:11:08 +0000 (+0200) Subject: Fix a deprecation warning X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/commitdiff_plain/01f97846a9919f81d6af6fdd76bdac0fc14572a4 Fix a deprecation warning --- 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,