Expose notification setting events in API

This commit is contained in:
Felipe Artur
2016-06-13 15:51:11 -03:00
parent e60999ec5c
commit dc2ca59433
2 changed files with 26 additions and 6 deletions
+2 -1
View File
@@ -275,7 +275,8 @@ module API
expose :access_level
expose :notification_level do |member, options|
if member.notification_setting
NotificationSetting.levels[member.notification_setting.level]
setting = member.notification_setting
{ level: NotificationSetting.levels[setting.level], events: setting.events }
end
end
end