feat: Customisable Email Templates (#1095)

This commit is contained in:
Sojan Jose
2020-08-06 15:21:06 +05:30
committed by GitHub
parent db877453a4
commit a04ca24def
27 changed files with 409 additions and 44 deletions

View File

@@ -0,0 +1,2 @@
class AccountDrop < BaseDrop
end

13
app/drops/base_drop.rb Normal file
View File

@@ -0,0 +1,13 @@
class BaseDrop < Liquid::Drop
def initialize(obj)
@obj = obj
end
def id
@obj.try(:id)
end
def name
@obj.try(:name)
end
end

View File

@@ -0,0 +1,5 @@
class ConversationDrop < BaseDrop
def display_id
@obj.try(:display_id)
end
end

2
app/drops/inbox_drop.rb Normal file
View File

@@ -0,0 +1,2 @@
class InboxDrop < BaseDrop
end

2
app/drops/user_drop.rb Normal file
View File

@@ -0,0 +1,2 @@
class UserDrop < BaseDrop
end