Sha256: 1849694221e7baf9fbe2ad82b71edf3cd375d1023bf374c5daf41aee2ff05387

Contents?: true

Size: 170 Bytes

Versions: 7

Compression:

Stored size: 170 Bytes

Contents

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