Sha256: 1e2ff09f5457f9c4016c3992561de3c85c566a14863d84a639e2e81d9f72f2ae

Contents?: true

Size: 171 Bytes

Versions: 7

Compression:

Stored size: 171 Bytes

Contents

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