about summary refs log tree commit diff
path: root/app/models/notification.rb
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-05-25 23:28:14 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-25 16:28:14 +0200
commitbca334cd28eb98f573f9bbd21ed4b23c8156f98a (patch)
treedfb83ca6d36164f41c9340e03869cbe0811afb9b /app/models/notification.rb
parent3e3ec9b2c87146846869a2534ba505304654beac (diff)
Remove arguments in association reader (#3305)
Diffstat (limited to 'app/models/notification.rb')
-rw-r--r--app/models/notification.rb2
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