cirandas.net

ref: master

plugins/comment_paragraph/controllers/public/comment_paragraph_plugin_public_controller.rb


1
2
3
4
5
6
7
8
9
class CommentParagraphPluginPublicController < PublicController
  append_view_path File.join(File.dirname(__FILE__) + '/../views')

  def comment_paragraph
    @comment = Comment.find(params[:id])
    render :json => { :paragraph_uuid => @comment.paragraph_uuid }
  end

end