diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-05-25 23:28:14 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-25 16:28:14 +0200 |
commit | bca334cd28eb98f573f9bbd21ed4b23c8156f98a (patch) | |
tree | dfb83ca6d36164f41c9340e03869cbe0811afb9b /app | |
parent | 3e3ec9b2c87146846869a2534ba505304654beac (diff) |
Remove arguments in association reader (#3305)
Diffstat (limited to 'app')
-rw-r--r-- | app/models/notification.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/notification.rb b/app/models/notification.rb index fe1fff11f..62c68dfb1 100644 --- a/app/models/notification.rb +++ b/app/models/notification.rb @@ -49,7 +49,7 @@ class Notification < ApplicationRecord cache_associated :from_account, status: STATUS_INCLUDES, mention: [status: STATUS_INCLUDES], favourite: [:account, status: STATUS_INCLUDES], follow: :account def activity(eager_loaded = true) - eager_loaded ? send(activity_type.downcase) : super + eager_loaded ? send(activity_type.underscore) : super() end def type |