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