From 153e96eb02112b5c9ad94f0a5868f71d94af9bb8 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Thu, 25 May 2017 23:28:14 +0900 Subject: [PATCH] Remove arguments in association reader (#3305) --- app/models/notification.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/notification.rb b/app/models/notification.rb index fe1fff11fa..62c68dfb19 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