summaryrefslogtreecommitdiff
path: root/app/serializers/company_serializer.rb
blob: 1c754ee32d86f5c5304266b9ec9e330766ae1cad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

# CompanySerializer
class CompanySerializer < BaseSerializer
  extend ActionView::RoutingUrlFor

  attributes :id, :name, :country, :short_name

  attribute :logo do |object|
    object.logo.url
  end
end