diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-08-17 20:26:45 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-08-17 20:26:45 +0300 |
commit | 5f758aff57dc54df7d92d0fb63e706d58cf1093d (patch) | |
tree | 5eb0e5f786e37c2f8e72a6dea13fac0408da982e /app/models/award_emoji.rb | |
parent | 9c22974cd14f41ed156ced0a6742dbae7412b0db (diff) |
Prefer polymorphism over `is_a?`
Diffstat (limited to 'app/models/award_emoji.rb')
-rw-r--r-- | app/models/award_emoji.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/award_emoji.rb b/app/models/award_emoji.rb index 1f07caf3366..b4e8bf836c2 100644 --- a/app/models/award_emoji.rb +++ b/app/models/award_emoji.rb @@ -37,7 +37,7 @@ class AwardEmoji < ActiveRecord::Base end def expire_etag_cache - return unless awardable.is_a?(Note) + return unless awardable.respond_to?(:expire_etag_cache) awardable.expire_etag_cache end |