From 47ea55216514f532c8e30618f621aeb93bd19eb0 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 24 Feb 2023 23:25:43 -0600 Subject: Mueve de directorio los serializadores --- app/controllers/serializers/base_serializer.rb | 8 ++++++++ app/controllers/serializers/user_account_serializer.rb | 8 ++++++++ app/serializers/base_serializer.rb | 8 -------- app/serializers/user_account_serializer.rb | 8 -------- 4 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 app/controllers/serializers/base_serializer.rb create mode 100644 app/controllers/serializers/user_account_serializer.rb delete mode 100644 app/serializers/base_serializer.rb delete mode 100644 app/serializers/user_account_serializer.rb diff --git a/app/controllers/serializers/base_serializer.rb b/app/controllers/serializers/base_serializer.rb new file mode 100644 index 0000000..bead772 --- /dev/null +++ b/app/controllers/serializers/base_serializer.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +module Serializers + # The father class of all serializers. + class BaseSerializer + include JSONAPI::Serializer + end +end diff --git a/app/controllers/serializers/user_account_serializer.rb b/app/controllers/serializers/user_account_serializer.rb new file mode 100644 index 0000000..09379c4 --- /dev/null +++ b/app/controllers/serializers/user_account_serializer.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +module Serializers + # The serializer for the user account model. + class UserAccountSerializer < BaseSerializer + attributes :email, :first_name, :last_name, :role + end +end diff --git a/app/serializers/base_serializer.rb b/app/serializers/base_serializer.rb deleted file mode 100644 index bead772..0000000 --- a/app/serializers/base_serializer.rb +++ /dev/null @@ -1,8 +0,0 @@ -# frozen_string_literal: true - -module Serializers - # The father class of all serializers. - class BaseSerializer - include JSONAPI::Serializer - end -end diff --git a/app/serializers/user_account_serializer.rb b/app/serializers/user_account_serializer.rb deleted file mode 100644 index 9d233fd..0000000 --- a/app/serializers/user_account_serializer.rb +++ /dev/null @@ -1,8 +0,0 @@ -# frozen_string_literal: true - -module Serializers - # The serializer for the user account model. - class UserAccountSerializer < BaseSerializer - attributes :email, :first_name, :last_name - end -end -- cgit v1.2.3