diff options
Diffstat (limited to 'app/controllers/serializers/company_serializer.rb')
-rw-r--r-- | app/controllers/serializers/company_serializer.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/serializers/company_serializer.rb b/app/controllers/serializers/company_serializer.rb index ec3f200..d211e9e 100644 --- a/app/controllers/serializers/company_serializer.rb +++ b/app/controllers/serializers/company_serializer.rb @@ -3,10 +3,12 @@ module Serializers # CompanySerializer class CompanySerializer < BaseSerializer + extend ActionView::RoutingUrlFor + attributes :id, :name, :country, :short_name attribute :logo do |object| - url_for(object.logo) + object.logo.url end end end |