summaryrefslogtreecommitdiffstats
path: root/app/models/journal.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-10-06 13:09:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-10-06 13:09:38 +0000
commit5416ed10222c82fbb1167377f0c7cb49e58ef4d7 (patch)
treef46bf1d6409c8dceadbad86e610a46ab018adb98 /app/models/journal.rb
parent015ca366341ba2fa9f1d7903907ddab19a87865f (diff)
downloadredmine-5416ed10222c82fbb1167377f0c7cb49e58ef4d7.tar.gz
redmine-5416ed10222c82fbb1167377f0c7cb49e58ef4d7.zip
Cleanup: Remove Issue#each_notification and Journal#each_notification (#26791).
Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@17584 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/journal.rb')
-rw-r--r--app/models/journal.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb
index 77823d0c2..cc96967f5 100644
--- a/app/models/journal.rb
+++ b/app/models/journal.rb
@@ -94,19 +94,6 @@ class Journal < ActiveRecord::Base
end
end
- def each_notification(users, &block)
- if users.any?
- users_by_details_visibility = users.group_by do |user|
- visible_details(user)
- end
- users_by_details_visibility.each do |visible_details, users|
- if notes? || visible_details.any?
- yield(users)
- end
- end
- end
- end
-
# Returns the JournalDetail for the given attribute, or nil if the attribute
# was not updated
def detail_for_attribute(attribute)