Sha256: 5bf59d1cb25c2b47c976e7c4be83d71dea9df8a5ad6c8f5d4c901edbbe879a1b
Contents?: true
Size: 337 Bytes
Versions: 1
Compression:
Stored size: 337 Bytes
Contents
module Transcriber class Resource module Responses def respond_with(model, options = {}) response = model.kind_of?(Array) ? model.first.class.resources(model) : model.resource [200, {"Content-Type" => "application/json"}, response.to_json] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
transcriber-0.0.1 | lib/transcriber/resource/responses.rb |