Skip to content

Commit

Permalink
Add a bit of documentation and cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
edavis10 committed Jan 19, 2011
1 parent f83956d commit 799d1c9
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1,6 +1,8 @@
module RedmineEmailWatchers
module Hooks
class ModelMailHandlerFindUserHook < Redmine::Hook::ViewListener
# Search which addresses in the EmailWatcherUser to find any email_watchers
# who should be given access to the issue
def model_mail_handler_find_user(context={})

if context[:user].nil? && context[:sender_email].present? && context[:email].in_reply_to.present?
Expand All @@ -13,7 +15,6 @@ def model_mail_handler_find_user(context={})
issue_id = issue_match[2]

# Scan through watchers looking for matching email_watchers
# TODO: since this is serialized, it will catch a bunch of records
watcher = Watcher.first(:conditions =>
['email_watchers IS NOT NULL AND user_id IN (:user) AND watchable_type = "Issue" AND watchable_id IN (:issue_id)',
{
Expand Down

0 comments on commit 799d1c9

Please sign in to comment.