lib/alephant/publisher/views/json.rb in alephant-publisher-0.6.3 vs lib/alephant/publisher/views/json.rb in alephant-publisher-0.6.4

- old
+ new

@@ -1,18 +1,21 @@ require 'alephant/publisher/views/base' require 'json' -module Alephant::Publisher::Views - class Json - include Base +module Alephant + module Publisher + module Views + class Json + include ::Alephant::Publisher::Views::Base - def setup - @content_type = "application/json" - end + def setup + @content_type = "application/json" + end - def render - JSON.generate(to_h) - end + def render + JSON.generate(to_h) + end + end + end end end -