User
Order
Product
Image
Comment
The user
will be able to place many orders
, upload multiple products
which can have many images
or comments
from another users
.
When we use this gem, we generate serializer, it will generate the folder serializers
. We neet to load this folder in application.rb
file:
config.eager_load_paths << Rails.root.join("serializers")
Read more here: Understanding Rails Custom Validations