Sha256: 2bee3fc16dc62850607659d66767bff551d6cfb7a153afb47f4447dd31cd2a4f

Contents?: true

Size: 294 Bytes

Versions: 1

Compression:

Stored size: 294 Bytes

Contents

begin
  require 'json/pure'
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.2.0 lib/capcode/render/json.rb