Chatwoot/app/fields/count_field.rb

8 lines
116 B
Ruby
Raw Permalink Normal View History

require 'administrate/field/base'
class CountField < Administrate::Field::Base
def to_s
data.count
end
end