commit: bca334cd28eb98f573f9bbd21ed4b23c8156f98a
parent: 3e3ec9b2c87146846869a2534ba505304654beac
Author: Yamagishi Kazutoshi <ykzts@desire.sh>
Date: Thu, 25 May 2017 23:28:14 +0900
Remove arguments in association reader (#3305)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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