Remove arguments in association reader (#3305)

lolsob-rspec
Yamagishi Kazutoshi 2017-05-25 23:28:14 +09:00 committed by Eugen Rochko
parent d85be9315a
commit 153e96eb02
1 changed files with 1 additions and 1 deletions

View File

@ -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 cache_associated :from_account, status: STATUS_INCLUDES, mention: [status: STATUS_INCLUDES], favourite: [:account, status: STATUS_INCLUDES], follow: :account
def activity(eager_loaded = true) def activity(eager_loaded = true)
eager_loaded ? send(activity_type.downcase) : super eager_loaded ? send(activity_type.underscore) : super()
end end
def type def type