diff options
author | Rémy Coutable <remy@rymai.me> | 2016-07-06 11:08:42 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-07-06 11:08:42 +0300 |
commit | 19e15ae244776d4d148e6a65a1443f94bb59398c (patch) | |
tree | 28513f1de3cc72592b78395b47c50e18fb4a62be /app/models/event.rb | |
parent | 4834e2e60936d9f59f3dd315d6d9d4ef82eecd66 (diff) |
Use a more future-proof check for Note/LegacyDiffNote
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/models/event.rb')
-rw-r--r-- | app/models/event.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/event.rb b/app/models/event.rb index e0c52fed6fb..fd736d12359 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -136,7 +136,7 @@ class Event < ActiveRecord::Base end def note? - %w[Note LegacyDiffNote].include?(target_type) + target.is_a?(Note) end def issue? |