FIX: On clicking edit category button, notification level is set to default

commit message
This commit is contained in:
Faisal Abbas 2015-12-13 15:26:16 +05:00
parent 7bf4ebf2f6
commit 6b69d717cc

View File

@ -38,4 +38,7 @@ class BasicCategorySerializer < ApplicationSerializer
scope && scope.can_edit?(object)
end
def notification_level
object.notification_level || CategoryUser.where(user: object.user, category: object).first.try(:notification_level)
end
end