Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
13
research/chatwoot/app/drops/base_drop.rb
Normal file
13
research/chatwoot/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
|
||||
Reference in New Issue
Block a user