Sha256: 484b77460b26069504f6a3988c2f54fd2cbc4aed4057762588d33f327aaddc80
Contents?: true
Size: 246 Bytes
Versions: 3
Compression:
Stored size: 246 Bytes
Contents
require 'alephant/publisher/views/base' require 'json' module Alephant::Publisher::Views class Json include Base def setup @content_type = "application/json" end def render JSON.generate(to_h) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alephant-publisher-0.6.3 | lib/alephant/publisher/views/json.rb |
alephant-publisher-0.6.2 | lib/alephant/publisher/views/json.rb |
alephant-publisher-0.6.1 | lib/alephant/publisher/views/json.rb |