Add member variable @user for mailer templates

This commit is contained in:
Alexander Meindl 2022-06-01 19:14:26 +02:00
parent 1afd461542
commit 66389b73f4
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
module Additionals
class Gemify
class << self
# install emoji fallback assets from gem (without asset pipline)
# install emoji fallback assets from gem (without asset pipeline)
def install_emoji_assets
Additionals.debug 'install_emoji_assets'
return Rails.logger.error 'TanukiEmoji class for emoji not found' unless defined? TanukiEmoji

View File

@ -39,6 +39,7 @@ module Additionals
message_id entity
@author = entity.author
@user = user
@entity = entity
@entity_url = entity_url
@ -52,6 +53,7 @@ module Additionals
message_id journal
@author = journal.user
@user = user
@entity = entity
@entity_url = entity_url