From: Yamagishi Kazutoshi Date: Thu, 25 May 2017 14:28:14 +0000 (+0900) Subject: Remove arguments in association reader (#3305) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=bca334cd28eb98f573f9bbd21ed4b23c8156f98a;p=mastodon.git Remove arguments in association reader (#3305) --- 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