Skip to content

Commit

Permalink
[delete] Unnecessary file and comment out
Browse files Browse the repository at this point in the history
  • Loading branch information
ash0411-maker committed May 20, 2021
1 parent 3ac7de0 commit dee7a54
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
7 changes: 0 additions & 7 deletions app/controllers/board/agents/nodes/post_controller.rb
Expand Up @@ -100,13 +100,6 @@ def destroy
@item.delete_key = ""
@item.attributes = get_params

# if get_captcha[:captcha_error].present? && @item.delete_key_was == @item.delete_key
# render_destroy @item.destroy, location: "#{@cur_node.url}sent", render: :delete
# return
# elsif get_captcha[:captcha_error].present?
# @item.errors.add :base, t("board.errors.not_same_delete_key") unless @item.delete_key_was == @item.delete_key
# end

if @cur_node.captcha_enabled? && get_captcha[:captcha_error].nil?
if is_captcha_valid?(@item) && @item.delete_key_was == @item.delete_key
render_destroy @item.destroy, location: "#{@cur_node.url}sent", render: :delete
Expand Down
1 change: 0 additions & 1 deletion app/models/inquiry/answer.rb
Expand Up @@ -5,7 +5,6 @@ class Inquiry::Answer
include SS::Captchable
include Cms::Addon::GroupPermission


attr_accessor :cur_node

store_in_default_post
Expand Down
12 changes: 0 additions & 12 deletions config/initializers/simple_captcha.rb

This file was deleted.

0 comments on commit dee7a54

Please sign in to comment.