summaryrefslogtreecommitdiff
path: root/app/controllers/serializers
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-10 20:12:55 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-10 20:12:55 -0600
commit5faf9807968ce9f7f548474afdc31029e57103dc (patch)
treee0c2fc55cfd9908e503897304beed8c718921f2c /app/controllers/serializers
parent8f04e87b466e79fa2086d69d9c49f5af89b68cb9 (diff)
Añade método update al controlador de companies
Diffstat (limited to 'app/controllers/serializers')
-rw-r--r--app/controllers/serializers/company_serializer.rb4
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