summaryrefslogtreecommitdiff
path: root/app/controllers/serializers
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-10 19:21:00 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-10 19:21:00 -0600
commit8f04e87b466e79fa2086d69d9c49f5af89b68cb9 (patch)
tree4c779a2801b7359c9cb94da1492a9087f6788d75 /app/controllers/serializers
parentf39235d865412d75625779a557a6c51736798dfa (diff)
Añade CompaniesController
Diffstat (limited to 'app/controllers/serializers')
-rw-r--r--app/controllers/serializers/company_serializer.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/controllers/serializers/company_serializer.rb b/app/controllers/serializers/company_serializer.rb
new file mode 100644
index 0000000..ec3f200
--- /dev/null
+++ b/app/controllers/serializers/company_serializer.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+module Serializers
+ # CompanySerializer
+ class CompanySerializer < BaseSerializer
+ attributes :id, :name, :country, :short_name
+
+ attribute :logo do |object|
+ url_for(object.logo)
+ end
+ end
+end