Sha256: 0c98921180c73d44a922ce15888f36013aa0a4f606f74ee5593643e2264b012d
Contents?: true
Size: 289 Bytes
Versions: 1
Compression:
Stored size: 289 Bytes
Contents
begin require 'json' rescue LoadError => e raise MissingLibrary, "Json could not be loaded (is it installed?): #{e.message}" end module Capcode module Helpers def render_json( f, _ ) #:nodoc: @response['Content-Type'] = 'application/json' f.to_json end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capcode-render-json-0.1.0 | lib/capcode/render/json.rb |