diff options
| author | mo <mo.khan@gmail.com> | 2017-09-03 15:16:43 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2017-09-03 15:16:43 -0600 |
| commit | dceee11f9b6b2a1d8ce151a94743f765d4f72b5a (patch) | |
| tree | f12fc6dccedb47ae5fb6a413275f55665beeffeb /app/controllers | |
| parent | 2fe8923b80b89f336c960d59c267776235ef91e5 (diff) | |
remove disqus
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/comments_controller.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb deleted file mode 100644 index 36c30126..00000000 --- a/app/controllers/comments_controller.rb +++ /dev/null @@ -1,17 +0,0 @@ -class CommentsController < ApplicationController - def create - creation = Creation.find(creation_id) - @comment = current_user.comment_on(creation, comment_params[:text], comment_params[:id]) - render json: @comment - end - - private - - def creation_id - params[:url].match(/\/(\d+)/)[0].gsub("/", "") - end - - def comment_params - params.require(:comment).permit(:id, :text) - end -end |
