Sha256: edd76a3eca38d5b25a193823fe8dc02cee000ab4124566434f8f67cad0ac339e
Contents?: true
Size: 360 Bytes
Versions: 1
Compression:
Stored size: 360 Bytes
Contents
# -*- coding: utf-8 -*- =begin rdoc Please see README =end require 'action_dispatch' require 'json' module ActionDispatch class Response # Returns the response body as JSON. def json JSON.parse(body) end # Allows you to manually set or override the response body as JSON. def json=(json) self.body=json end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_action_dispatch_response_json-1.0.0 | lib/sixarm_ruby_action_dispatch_response_json.rb |