From 7c61897676b62235d83f97ba55f7469ce903900c Mon Sep 17 00:00:00 2001 From: ykl7 Date: Wed, 30 Nov 2016 02:19:16 +0530 Subject: [PATCH] ApplicationHelper import for use of feature method (#1024) --- app/mailers/subscription_mailer.rb | 3 +++ app/views/subscription_mailer/notify_node_creation.html.erb | 2 ++ 2 files changed, 5 insertions(+) diff --git a/app/mailers/subscription_mailer.rb b/app/mailers/subscription_mailer.rb index 9eeb616ccb..c64e0808de 100644 --- a/app/mailers/subscription_mailer.rb +++ b/app/mailers/subscription_mailer.rb @@ -1,4 +1,6 @@ class SubscriptionMailer < ActionMailer::Base + helper :application + include ApplicationHelper default from: "do-not-reply@#{ActionMailer::Base.default_url_options[:host]}" def notify_node_creation(node) @@ -8,6 +10,7 @@ def notify_node_creation(node) @user = val[:user] @node = node @tags = val[:tags] + @footer = feature('email-footer') mail(:to => val[:user].email, :subject => subject).deliver end end diff --git a/app/views/subscription_mailer/notify_node_creation.html.erb b/app/views/subscription_mailer/notify_node_creation.html.erb index 335122d862..6ce3b9d238 100644 --- a/app/views/subscription_mailer/notify_node_creation.html.erb +++ b/app/views/subscription_mailer/notify_node_creation.html.erb @@ -26,4 +26,6 @@

Report spam and abuse to: moderators@<%= ActionMailer::Base.default_url_options[:host] %>

+<%= @footer %> +