Sha256: 207a6a531c23c185cfab3ffb5e3709bcb27cdc22074a9d42f22d60a69a2c40fe

Contents?: true

Size: 174 Bytes

Versions: 4

Compression:

Stored size: 174 Bytes

Contents

require 'json'

module Capcode
  module Helpers
    def render_json( f, opts ) #:nodoc:
      @response['Content-Type'] = 'application/json'
      f.to_json
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
Capcode-0.8.7 lib/capcode/render/json.rb
Capcode-0.8.6 lib/capcode/render/json.rb
Capcode-0.8.5 lib/capcode/render/json.rb
Capcode-0.8.4 lib/capcode/render/json.rb