From 9abdfe2a77ed8a4bf1c632862c2af9e33f699de9 Mon Sep 17 00:00:00 2001 From: Muhammad Nawzad Date: Fri, 17 Nov 2023 23:42:57 +0300 Subject: [PATCH] Moves example to readme documentations --- lib/generators/schemable/model_generator.rb | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/generators/schemable/model_generator.rb b/lib/generators/schemable/model_generator.rb index bc48a64..37b3d7b 100644 --- a/lib/generators/schemable/model_generator.rb +++ b/lib/generators/schemable/model_generator.rb @@ -29,21 +29,6 @@ def excluded_create_request_attributes def excluded_update_request_attributes %i[updated_at created_at] end - - # Methods that maybe useful if factory_bot and jsonapi-rails are used to generate the instance - ################################################## - # include SerializersHelper # This is a helper module that contains a method "serializers_map" that maps models to serializers - # - # attr_accessor :instance - # - # def serialized_instance - # @instance ||= JSONAPI::Serializable::Renderer.new.render(FactoryBot.create(:#{@model_name.underscore.downcase.singularize}), class: serializers_map, include: []) - # end - # - # def serializer - # V1::#{@model_name.classify}Serializer - # end - ################################################## end end end