Separates create and update excluded request attributes on file generation

This commit is contained in:
Muhammad Nawzad 2023-07-29 16:29:46 +03:00
parent 55c7ec77cb
commit ec3a318f53
No known key found for this signature in database
GPG Key ID: B954B6AAE33940B2

View File

@ -36,7 +36,11 @@ module Swagger
V1::#{@model_name.classify}Serializer
end
def excluded_request_attributes
def excluded_create_request_attributes
%i[updated_at created_at]
end
def excluded_update_request_attributes
%i[updated_at created_at]
end
end