Fix attribute name

This commit is contained in:
Maximilian Grundke
2017-09-13 07:55:33 +02:00
parent 2d1830edec
commit 0557255d74

View File

@ -127,7 +127,7 @@ class CommentsController < ApplicationController
:request_for_comment_id => request_for_comment.id, :request_for_comment_id => request_for_comment.id,
:user_id => commenter.id, :user_type => commenter.class.name) :user_id => commenter.id, :user_type => commenter.class.name)
subscriptions.each do |subscription| subscriptions.each do |subscription|
if (subscription.type == 'author' and current_user == request_for_comment.user) or subscription.type == 'all' if (subscription.subscription_type == 'author' and current_user == request_for_comment.user) or subscription.subscription_type == 'all'
UserMailer.got_new_comment_for_subscription(comment, request_for_comment, request_for_comment.user, current_user).deliver_now UserMailer.got_new_comment_for_subscription(comment, request_for_comment, request_for_comment.user, current_user).deliver_now
end end
end end