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

View File

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