Sha256: ab00399b301a3e35c80ecaf9791a271e09379f5be46df9022c033d1be8b2844c
Contents?: true
Size: 533 Bytes
Versions: 4
Compression:
Stored size: 533 Bytes
Contents
# To add Grape support, require 'grape/active_model_serializers' in the base of your Grape endpoints # Then add 'include Grape::ActiveModelSerializers' to enable the formatter and helpers require 'active_model_serializers' require 'grape/formatters/active_model_serializers' require 'grape/helpers/active_model_serializers' module Grape::ActiveModelSerializers extend ActiveSupport::Concern included do formatter :json, Grape::Formatters::ActiveModelSerializers helpers Grape::Helpers::ActiveModelSerializers end end
Version data entries
4 entries across 4 versions & 1 rubygems