summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2017-09-03 15:16:43 -0600
committermo <mo.khan@gmail.com>2017-09-03 15:16:43 -0600
commitdceee11f9b6b2a1d8ce151a94743f765d4f72b5a (patch)
treef12fc6dccedb47ae5fb6a413275f55665beeffeb /app/controllers
parent2fe8923b80b89f336c960d59c267776235ef91e5 (diff)
remove disqus
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/comments_controller.rb17
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