Skip to content

Commit

Permalink
Moves example to readme documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadnawzad committed Nov 17, 2023
1 parent 7fb82b3 commit 9abdfe2
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/generators/schemable/model_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9abdfe2

Please sign in to comment.