Sha256: 097cebfcbb583da2d18d05cc1574e6438e00c043025130e9f73b073966da3151
Contents?: true
Size: 478 Bytes
Versions: 7
Compression:
Stored size: 478 Bytes
Contents
module Grape module ContentTypes # Content types are listed in order of preference. CONTENT_TYPES = ActiveSupport::OrderedHash[ :xml, 'application/xml', :serializable_hash, 'application/json', :json, 'application/json', :atom, 'application/atom+xml', :rss, 'application/rss+xml', :txt, 'text/plain', ] def self.content_types_for(from_settings) from_settings || Grape::ContentTypes::CONTENT_TYPES end end end
Version data entries
7 entries across 7 versions & 1 rubygems