From 09726bdf446b4673d4f92bc9132a6e34f3a67160 Mon Sep 17 00:00:00 2001 From: Brett Walker Date: Tue, 12 Sep 2017 17:39:38 +0200 Subject: small cleanup changes based on feedback --- app/views/devise/mailer/confirmation_instructions.html.haml | 5 +---- app/views/devise/mailer/confirmation_instructions.text.erb | 6 +----- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'app/views/devise') diff --git a/app/views/devise/mailer/confirmation_instructions.html.haml b/app/views/devise/mailer/confirmation_instructions.html.haml index a0fb687e152..d2685140913 100644 --- a/app/views/devise/mailer/confirmation_instructions.html.haml +++ b/app/views/devise/mailer/confirmation_instructions.html.haml @@ -1,4 +1 @@ -- if @resource.is_a?(User) - = render partial: 'confirmation_instructions_account' -- else - = render partial: 'confirmation_instructions_secondary' += render partial: "confirmation_instructions_#{@resource.is_a?(User) ? 'account' : 'secondary'}" \ No newline at end of file diff --git a/app/views/devise/mailer/confirmation_instructions.text.erb b/app/views/devise/mailer/confirmation_instructions.text.erb index 057bb0b23f9..05fddddf415 100644 --- a/app/views/devise/mailer/confirmation_instructions.text.erb +++ b/app/views/devise/mailer/confirmation_instructions.text.erb @@ -1,5 +1 @@ -<% if @resource.is_a?(User) %> -<%= render partial: 'confirmation_instructions_account' %> -<% else %> -<%= render partial: 'confirmation_instructions_secondary' %> -<% end %> +<%= render partial: "confirmation_instructions_#{@resource.is_a?(User) ? 'account' : 'secondary'}" %> \ No newline at end of file -- cgit v1.2.1