Sha256: 85600d48a4fe7dc8272c651dd550a8aafbb8fd1af1856976f7ec73bb6ba327c2

Contents?: true

Size: 168 Bytes

Versions: 7

Compression:

Stored size: 168 Bytes

Contents

module Octodmin::Views::Posts
  class Show
    include Octodmin::View
    format :json

    def render
      JSON.dump(posts: post.serializable_hash)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
octodmin-0.3.3 app/views/posts/show.rb
octodmin-0.3.2 app/views/posts/show.rb
octodmin-0.3.1 app/views/posts/show.rb
octodmin-0.3.0 app/views/posts/show.rb
octodmin-0.2.1 app/views/posts/show.rb
octodmin-0.2.0 app/views/posts/show.rb
octodmin-0.1.0 app/views/posts/show.rb