Module: UserTagNotificationsMixin
- Included in:
- CurrentUserSerializer, UserSerializer, UserTagNotificationsSerializer
- Defined in:
- app/serializers/concerns/user_tag_notifications_mixin.rb
Instance Method Summary collapse
- #muted_tags ⇒ Object
- #regular_tags ⇒ Object
- #tag_user_notification_levels ⇒ Object
- #tags_with_notification_level(lookup_level) ⇒ Object
- #tracked_tags ⇒ Object
- #watched_tags ⇒ Object
- #watching_first_post_tags ⇒ Object
Instance Method Details
#muted_tags ⇒ Object
4 5 6 |
# File 'app/serializers/concerns/user_tag_notifications_mixin.rb', line 4 def (:muted) end |
#regular_tags ⇒ Object
20 21 22 |
# File 'app/serializers/concerns/user_tag_notifications_mixin.rb', line 20 def (:regular) end |
#tag_user_notification_levels ⇒ Object
30 31 32 |
# File 'app/serializers/concerns/user_tag_notifications_mixin.rb', line 30 def tag_user_notification_levels @tag_user_notification_levels ||= TagUser.notification_levels_for(user) end |
#tags_with_notification_level(lookup_level) ⇒ Object
24 25 26 27 28 |
# File 'app/serializers/concerns/user_tag_notifications_mixin.rb', line 24 def (lookup_level) tag_user_notification_levels .select { |id, level| level == TagUser.notification_levels[lookup_level] } .keys end |
#tracked_tags ⇒ Object
8 9 10 |
# File 'app/serializers/concerns/user_tag_notifications_mixin.rb', line 8 def (:tracking) end |
#watched_tags ⇒ Object
16 17 18 |
# File 'app/serializers/concerns/user_tag_notifications_mixin.rb', line 16 def (:watching) end |
#watching_first_post_tags ⇒ Object
12 13 14 |
# File 'app/serializers/concerns/user_tag_notifications_mixin.rb', line 12 def (:watching_first_post) end |