mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 12:11:40 +01:00
Remove arguments in association reader (#3305)
This commit is contained in:
parent
3e3ec9b2c8
commit
bca334cd28
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue