Chatwoot/app/drops/contact_drop.rb
2022-12-15 21:10:44 +05:30

9 lines
126 B
Ruby

class ContactDrop < BaseDrop
def email
@obj.try(:email)
end
def phone_number
@obj.try(:phone_number)
end
end