run searizler on object active model searializer code example
Example: active model serializer
gem 'active_model_serializers'
add this to your gemfile in rails, then run bundle install.
gem 'active_model_serializers'
add this to your gemfile in rails, then run bundle install.