Sha256: e831f15b2c72b08c1810b9f3b216c9d673e65cf8f60209b11e20ecf16509aceb

Contents?: true

Size: 170 Bytes

Versions: 7

Compression:

Stored size: 170 Bytes

Contents

module Octodmin::Views::Posts
  class Update
    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/update.rb
octodmin-0.3.2 app/views/posts/update.rb
octodmin-0.3.1 app/views/posts/update.rb
octodmin-0.3.0 app/views/posts/update.rb
octodmin-0.2.1 app/views/posts/update.rb
octodmin-0.2.0 app/views/posts/update.rb
octodmin-0.1.0 app/views/posts/update.rb