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

@@ -1,3 +1,10 @@
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
DROPPABLES = %w[Account Channel Conversation Inbox User].freeze
def to_drop
return unless DROPPABLES.include?(self.class.name)
"#{self.class.name}Drop".constantize.new(self)
end
end