module Grape::Rails::Cache::JsonFormatter
For maximum performance we are fetching string from redis and return them with no parsing at all
Public Class Methods
call(object, env)
click to toggle source
# File lib/grape/rails/cache/formatter.rb, line 6 def self.call(object, env) object.is_a?(String) ? object : MultiJson.dump(object) end