feat: Customisable Email Templates (#1095)
This commit is contained in:
2
app/drops/account_drop.rb
Normal file
2
app/drops/account_drop.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
class AccountDrop < BaseDrop
|
||||
end
|
||||
13
app/drops/base_drop.rb
Normal file
13
app/drops/base_drop.rb
Normal 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
|
||||
5
app/drops/conversation_drop.rb
Normal file
5
app/drops/conversation_drop.rb
Normal 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
2
app/drops/inbox_drop.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
class InboxDrop < BaseDrop
|
||||
end
|
||||
2
app/drops/user_drop.rb
Normal file
2
app/drops/user_drop.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
class UserDrop < BaseDrop
|
||||
end
|
||||
Reference in New Issue
Block a user