feat: Customisable Email Templates (#1095)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user