module Utopia::Controller::Respond::Handlers::JSON
Constants
- APPLICATION_JSON
Public Class Methods
call(context, request, media_range, object, **options)
click to toggle source
# File lib/utopia/controller/respond.rb, line 42 def self.call(context, request, media_range, object, **options) if version = media_range.parameters['version'] options[:version] = version.to_s end context.succeed! content: object.to_json(options), type: APPLICATION_JSON end
split(*arguments)
click to toggle source
# File lib/utopia/controller/respond.rb, line 38 def self.split(*arguments) APPLICATION_JSON.split(*arguments) end