From 5faf9807968ce9f7f548474afdc31029e57103dc Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 10 Mar 2023 20:12:55 -0600 Subject: Añade método update al controlador de companies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/serializers/company_serializer.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/controllers/serializers/company_serializer.rb') 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 -- cgit v1.2.3