Class: Pinnable::CommentsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/pinnable/comments_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



3
4
5
# File 'app/controllers/pinnable/comments_controller.rb', line 3

def create
  render json: { public_id: comment.public_id, author_label: comment.author_label, body: comment.body }, status: :created
end