diff options
author | HombreLaser <sebastian-440@live.com> | 2023-03-10 20:12:55 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-03-10 20:12:55 -0600 |
commit | 5faf9807968ce9f7f548474afdc31029e57103dc (patch) | |
tree | e0c2fc55cfd9908e503897304beed8c718921f2c /app/controllers/serializers | |
parent | 8f04e87b466e79fa2086d69d9c49f5af89b68cb9 (diff) |
Añade método update al controlador de companies
Diffstat (limited to 'app/controllers/serializers')
-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 |