From ebf1edb624563e9699ad60f2985fcd3c73e7e61e Mon Sep 17 00:00:00 2001 From: Jan Werkhoven Date: Sun, 11 Feb 2024 20:00:49 +1100 Subject: [PATCH] Tune the Admin controllers for page views --- .../v1/admin/page_views_controller.rb | 49 ------------------- .../v1/public/page_views_controller.rb | 49 ------------------- 2 files changed, 98 deletions(-) diff --git a/app/controllers/v1/admin/page_views_controller.rb b/app/controllers/v1/admin/page_views_controller.rb index ca6a423..ee13891 100644 --- a/app/controllers/v1/admin/page_views_controller.rb +++ b/app/controllers/v1/admin/page_views_controller.rb @@ -30,55 +30,6 @@ def model_class def serializer_class V1::Admin::PageViewSerializer end - - def creatable_attributes - %[] - # %i[ - # name - # company - # email - # mobile - # message - # purpose - # source - # ip - # ip_region - # ip_city - # ] - end - - def creatable_relationships - %[] - # %i[ - # country - # ip_country - # ] - end - - def permitted_filters - %[] - # %i[ - # main_group_id - # sub_group_id - # ] - end - - def permanent_filters - {} - # { - # public: true - # } - end - - def permitted_includes - %[] - # %i[ - # related_articles - # related_products - # related_products.main_group - # translations - # ] - end end end end diff --git a/app/controllers/v1/public/page_views_controller.rb b/app/controllers/v1/public/page_views_controller.rb index 4d1f5f6..c0e472d 100644 --- a/app/controllers/v1/public/page_views_controller.rb +++ b/app/controllers/v1/public/page_views_controller.rb @@ -30,55 +30,6 @@ def model_class def serializer_class V1::Public::PageViewSerializer end - - def creatable_attributes - %[] - # %i[ - # name - # company - # email - # mobile - # message - # purpose - # source - # ip - # ip_region - # ip_city - # ] - end - - def creatable_relationships - %[] - # %i[ - # country - # ip_country - # ] - end - - def permitted_filters - %[] - # %i[ - # main_group_id - # sub_group_id - # ] - end - - def permanent_filters - {} - # { - # public: true - # } - end - - def permitted_includes - %[] - # %i[ - # related_articles - # related_products - # related_products.main_group - # translations - # ] - end end end end