Sha256: 345a903a23fd0097b16e29b3c82fd7e230a1fd4719a30237dcdb8b270a110dda

Contents?: true

Size: 177 Bytes

Versions: 7

Compression:

Stored size: 177 Bytes

Contents

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

    def render
      JSON.dump(posts: posts.map(&:serializable_hash))
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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