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

Tom Hughes notifications at github.com
Tue Oct 4 10:02:13 UTC 2016

tomhughes commented on this pull request.

> @@ -69,6 +80,30 @@ def comment
     render :action => "no_such_entry", :status => :not_found
+  def subscribe
+    diary_entry = DiaryEntry.find(params[:id])
+    if ! diary_entry.subscribers.exists?(@user.id)

rubocop has already complained about that, and quite a number of other things...

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/283d26f8/attachment.html>

More information about the rails-dev mailing list