课程通知动态无法回复
This commit is contained in:
parent
ce5f0eb855
commit
0b42430e2d
|
@ -28,7 +28,11 @@ class CommentsController < ApplicationController
|
||||||
|
|
||||||
@comment = Comment.new
|
@comment = Comment.new
|
||||||
#@project ? @comment.comments = params[:comment][:comments] : @comment.comments = params[:comment]
|
#@project ? @comment.comments = params[:comment][:comments] : @comment.comments = params[:comment]
|
||||||
@comment.comments = params[:comment][:comments]
|
if params[:user_activity_id]
|
||||||
|
@comment.comments = params[:comment]
|
||||||
|
else
|
||||||
|
@comment.comments = params[:comment][:comments]
|
||||||
|
end
|
||||||
@comment.author = User.current
|
@comment.author = User.current
|
||||||
if @news.comments << @comment
|
if @news.comments << @comment
|
||||||
if params[:asset_id]
|
if params[:asset_id]
|
||||||
|
|
Loading…
Reference in New Issue