Sha256: ee0242994b708f41beeb6712f759b4e19e0b833371356126a6bed0f327e5120f
Contents?: true
Size: 561 Bytes
Versions: 2
Compression:
Stored size: 561 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 'agi_active_model_serializers' require 'grape/formatters/active_model_serializers' require 'grape/helpers/active_model_serializers' module Grape module ActiveModelSerializers extend ActiveSupport::Concern included do formatter :json, Grape::Formatters::ActiveModelSerializers helpers Grape::Helpers::ActiveModelSerializers end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
agi_active_model_serializers-0.10.9 | lib/grape/active_model_serializers.rb |
agi_active_model_serializers-0.10.8 | lib/grape/active_model_serializers.rb |