diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-05-27 08:44:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-05-27 08:44:24 +0000 |
commit | 9439cae70fab58b8cafdd753aa83135d4279345d (patch) | |
tree | f6b7fea28d32be459a36d6e4c5956844e612415f /app/models/journal.rb | |
parent | ccb9d4ada9bdf2c24754f0dcf6608d8a3f7e895b (diff) | |
download | redmine-9439cae70fab58b8cafdd753aa83135d4279345d.tar.gz redmine-9439cae70fab58b8cafdd753aa83135d4279345d.zip |
Send journal notification after commit (#25794).
git-svn-id: http://svn.redmine.org/redmine/trunk@16573 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/journal.rb')
-rw-r--r-- | app/models/journal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb index 7d1a6eb34..369666b6f 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -43,7 +43,7 @@ class Journal < ActiveRecord::Base " (#{JournalDetail.table_name}.prop_key = 'status_id' OR #{Journal.table_name}.notes <> '')").distinct before_create :split_private_notes - after_create :send_notification + after_commit :send_notification, :on => :create scope :visible, lambda {|*args| user = args.shift || User.current |