Skip to content

Commit ebf1edb

Browse files
committed
Tune the Admin controllers for page views
1 parent 0b43224 commit ebf1edb

File tree

2 files changed

+0
-98
lines changed

2 files changed

+0
-98
lines changed

app/controllers/v1/admin/page_views_controller.rb

-49
Original file line numberDiff line numberDiff line change
@@ -30,55 +30,6 @@ def model_class
3030
def serializer_class
3131
V1::Admin::PageViewSerializer
3232
end
33-
34-
def creatable_attributes
35-
%[]
36-
# %i[
37-
# name
38-
# company
39-
# email
40-
# mobile
41-
# message
42-
# purpose
43-
# source
44-
# ip
45-
# ip_region
46-
# ip_city
47-
# ]
48-
end
49-
50-
def creatable_relationships
51-
%[]
52-
# %i[
53-
# country
54-
# ip_country
55-
# ]
56-
end
57-
58-
def permitted_filters
59-
%[]
60-
# %i[
61-
# main_group_id
62-
# sub_group_id
63-
# ]
64-
end
65-
66-
def permanent_filters
67-
{}
68-
# {
69-
# public: true
70-
# }
71-
end
72-
73-
def permitted_includes
74-
%[]
75-
# %i[
76-
# related_articles
77-
# related_products
78-
# related_products.main_group
79-
# translations
80-
# ]
81-
end
8233
end
8334
end
8435
end

app/controllers/v1/public/page_views_controller.rb

-49
Original file line numberDiff line numberDiff line change
@@ -30,55 +30,6 @@ def model_class
3030
def serializer_class
3131
V1::Public::PageViewSerializer
3232
end
33-
34-
def creatable_attributes
35-
%[]
36-
# %i[
37-
# name
38-
# company
39-
# email
40-
# mobile
41-
# message
42-
# purpose
43-
# source
44-
# ip
45-
# ip_region
46-
# ip_city
47-
# ]
48-
end
49-
50-
def creatable_relationships
51-
%[]
52-
# %i[
53-
# country
54-
# ip_country
55-
# ]
56-
end
57-
58-
def permitted_filters
59-
%[]
60-
# %i[
61-
# main_group_id
62-
# sub_group_id
63-
# ]
64-
end
65-
66-
def permanent_filters
67-
{}
68-
# {
69-
# public: true
70-
# }
71-
end
72-
73-
def permitted_includes
74-
%[]
75-
# %i[
76-
# related_articles
77-
# related_products
78-
# related_products.main_group
79-
# translations
80-
# ]
81-
end
8233
end
8334
end
8435
end

0 commit comments

Comments
 (0)