Class: UserOptionSerializer
Instance Method Summary
collapse
expire_cache_fragment!, fragment_cache
#include!
Instance Method Details
#auto_track_topics_after_msecs ⇒ Object
48
49
50
|
# File 'app/serializers/user_option_serializer.rb', line 48
def auto_track_topics_after_msecs
object.auto_track_topics_after_msecs || SiteSetting.default_other_auto_track_topics_after_msecs
end
|
#new_topic_duration_minutes ⇒ Object
57
58
59
|
# File 'app/serializers/user_option_serializer.rb', line 57
def new_topic_duration_minutes
object.new_topic_duration_minutes || SiteSetting.default_other_new_topic_duration_minutes
end
|
#notification_level_when_replying ⇒ Object
52
53
54
55
|
# File 'app/serializers/user_option_serializer.rb', line 52
def notification_level_when_replying
object.notification_level_when_replying ||
SiteSetting.default_other_notification_level_when_replying
end
|
#theme_ids ⇒ Object
61
62
63
|
# File 'app/serializers/user_option_serializer.rb', line 61
def theme_ids
object.theme_ids.presence || [SiteSetting.default_theme_id]
end
|