mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Do not include method definitions in serializer attributes
These accidental inclusions are mostly no-ops (because the method name is also included as an explicit symbol). The mistakes were made more obvious because syntax_tree adjusted the indentation of these methods
This commit is contained in:
@@ -17,10 +17,11 @@ class CurrentUserOptionSerializer < ApplicationSerializer
|
||||
:seen_popups,
|
||||
:should_be_redirected_to_top,
|
||||
:redirected_to_top,
|
||||
:treat_as_new_topic_start_date,
|
||||
def likes_notifications_disabled
|
||||
object.likes_notifications_disabled?
|
||||
end
|
||||
:treat_as_new_topic_start_date
|
||||
|
||||
def likes_notifications_disabled
|
||||
object.likes_notifications_disabled?
|
||||
end
|
||||
|
||||
def include_redirected_to_top?
|
||||
object.redirected_to_top.present?
|
||||
|
||||
Reference in New Issue
Block a user