FEATURE: dismissable banner topic

This commit is contained in:
Régis Hanol
2014-06-18 20:04:10 +02:00
parent 39aa87dedf
commit 00117c18c3
15 changed files with 153 additions and 55 deletions

View File

@@ -23,7 +23,8 @@ class CurrentUserSerializer < BasicUserSerializer
:redirected_to_top_reason,
:disable_jump_reply,
:custom_fields,
:muted_category_ids
:muted_category_ids,
:dismissed_banner_key
def include_site_flagged_posts_count?
object.staff?
@@ -100,4 +101,8 @@ class CurrentUserSerializer < BasicUserSerializer
.pluck(:category_id)
end
def dismissed_banner_key
object.user_profile.dismissed_banner_key
end
end