spec/fixtures/components/foo/models/foo.rb in alephant-preview-0.4.0 vs spec/fixtures/components/foo/models/foo.rb in alephant-preview-0.5.0

- old
+ new

@@ -1,9 +1,9 @@ -require "alephant/renderer/views/html" +require "alephant/renderer/views/json" module MyApp - class Foo < ::Alephant::Renderer::Views::Html - def content - "content" + class Foo < ::Alephant::Renderer::Views::Json + def to_h + { "content" => "as json" } end end end