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
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,