[openstreetmap/openstreetmap-website] Diary entry comment subscriptions (#1309)

Tom Hughes notifications at github.com
Tue Oct 4 09:55:44 UTC 2016

tomhughes commented on this pull request.

>        end
+      # Add the commenter to the subscribers if necessary
+      @entry.subscribers << @user unless @entry.subscribers.exists?(@user.id)

Rails lets you use a model object and it's ID more or interchangeably so this is likely not going to cause any problem.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20161004/cf1d2105/attachment.html>

More information about the rails-dev mailing list