Skip to content
Snippets Groups Projects
Commit bca334cd authored by Yamagishi Kazutoshi's avatar Yamagishi Kazutoshi Committed by Eugen Rochko
Browse files

Remove arguments in association reader (#3305)

parent 3e3ec9b2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment