]> nos-oignons.net Git - gestion-adh.git/commitdiff
Fix a deprecation warning
authorjvoisin <julien.voisin@dustri.org>
Tue, 16 May 2023 08:11:08 +0000 (10:11 +0200)
committerjvoisin <julien.voisin@dustri.org>
Tue, 16 May 2023 08:11:08 +0000 (10:11 +0200)
features/support/fixtures.rb
lib/nos_oignons/reminder.rb

index 3c74f4b7e9f409e87aed063aac083c89d5128e5a..723f3516f06366d42a6a552801638521c9b72aba 100644 (file)
@@ -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
index d0250895b54e2595bda374ea426f7a67b3b070e8..bee6923464021e182dab48eb70476f0e0b793172 100644 (file)
@@ -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,