lib/grape/error_formatter/base.rb in grape-0.6.0 vs lib/grape/error_formatter/base.rb in grape-0.6.1
- old
+ new
@@ -3,13 +3,14 @@
module Base
class << self
FORMATTERS = {
- :serializable_hash => Grape::ErrorFormatter::Json,
- :json => Grape::ErrorFormatter::Json,
- :txt => Grape::ErrorFormatter::Txt,
- :xml => Grape::ErrorFormatter::Xml
+ serializable_hash: Grape::ErrorFormatter::Json,
+ json: Grape::ErrorFormatter::Json,
+ jsonapi: Grape::ErrorFormatter::Json,
+ txt: Grape::ErrorFormatter::Txt,
+ xml: Grape::ErrorFormatter::Xml
}
def formatters(options)
FORMATTERS.merge(options[:error_formatters] || {})
end