Module: Kublog::Network::Email::ClassMethods

Defined in:
lib/kublog/network/email.rb

Instance Method Summary collapse

Instance Method Details

#email_template(post) ⇒ Object

Renders a preview of the e-mail that will be sent to the user so that the Author can edit the content of the e-mail on a Liquid Template



51
52
53
# File 'lib/kublog/network/email.rb', line 51

def email_template(post)
  ERB.new(email_erb_template.read).result(binding)
end