Skip to content

Commit

Permalink
Tune the Admin controllers for page views
Browse files Browse the repository at this point in the history
  • Loading branch information
janwerkhoven committed Feb 11, 2024
1 parent 0b43224 commit ebf1edb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 98 deletions.
49 changes: 0 additions & 49 deletions app/controllers/v1/admin/page_views_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
49 changes: 0 additions & 49 deletions app/controllers/v1/public/page_views_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ebf1edb

Please sign in to comment.