mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 12:37:56 +00:00
14 lines
149 B
Ruby
14 lines
149 B
Ruby
class BaseDrop < Liquid::Drop
|
|
def initialize(obj)
|
|
@obj = obj
|
|
end
|
|
|
|
def id
|
|
@obj.try(:id)
|
|
end
|
|
|
|
def name
|
|
@obj.try(:name)
|
|
end
|
|
end
|