Chatwoot/app/fields/enterprise/account_limits_field.rb

8 lines
194 B
Ruby
Raw Permalink Normal View History

require 'administrate/field/base'
class Enterprise::AccountLimitsField < Administrate::Field::Base
def to_s
data.present? ? data.to_json : { agents: nil, inboxes: nil }.to_json
end
end