Add member variable @user for mailer templates
This commit is contained in:
parent
1afd461542
commit
66389b73f4
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user