GitLab steht Mittwoch, den 23. September, zwischen 10:00 und 12:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

Commit 39ae8398 authored by Douwe Maan's avatar Douwe Maan

Use `try` instead of `repond_to?` and a method call

parent b7c1b05f
......@@ -37,8 +37,6 @@ class AwardEmoji < ActiveRecord::Base
end
def expire_etag_cache
return unless awardable.respond_to?(:expire_etag_cache)
awardable.expire_etag_cache
awardable.try(:expire_etag_cache)
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment