Sha256: a3a055e5349dbc3085916ff430b0a209472f6456dd6ba3526f5cfd419cd3ed18
Contents?: true
Size: 343 Bytes
Versions: 7
Compression:
Stored size: 343 Bytes
Contents
require 'alephant/publisher/views/base' require 'json' module Alephant module Publisher module Views class Json include ::Alephant::Publisher::Views::Base def setup @content_type = "application/json" end def render JSON.generate(to_h) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems