app/controllers/proclaim/comments_controller.rb in proclaim-0.3.1 vs app/controllers/proclaim/comments_controller.rb in proclaim-0.4.0
- old
+ new
@@ -14,10 +14,12 @@
if antispam_params[:answer] == antispam_params[:solution]
subscription = nil
params = subscription_params
if params and params[:subscribe]
- subscription = Subscription.new(email: params[:email], post: @comment.post)
+ subscription = Subscription.new(name: @comment.author,
+ email: params[:email],
+ post: @comment.post)
end
respond_to do |format|
begin
Comment.transaction do