Chatwoot/app/drops/base_drop.rb

14 lines
149 B
Ruby
Raw Permalink Normal View History

class BaseDrop < Liquid::Drop
def initialize(obj)
@obj = obj
end
def id
@obj.try(:id)
end
def name
@obj.try(:name)
end
end