chromesetting
daiao 5 years ago
parent 15753532fb
commit 69f7c8cc25

@ -22,7 +22,7 @@ class CommentsController < ApplicationController
@discuss = @hack.discusses.new(reply_params)
@discuss.hidden = false
@discuss.user_id = current_user.id
@discuss.root_id = params[:parent_id]
@discuss.root_id = params[:comments][:parent_id]
@discuss.save!
rescue Exception => e
uid_logger_error("reply discuss failed : #{e.message}")

@ -0,0 +1,6 @@
class ModifyTaskPassForChallenges < ActiveRecord::Migration[5.2]
def change
challenge = Challenge.find(6917)
challenge.update_attribute(:task_pass, challenge.gsub(" ", "").gsub("rac", "\frac"))
end
end
Loading…
Cancel
Save