Merge pull request #3911 from abbasfaisal/edit-category-fix

FIX: On clicking edit category button, notification level is set to default
This commit is contained in:
Guo Xiang Tan 2015-12-14 09:55:35 +08:00
commit 81e97c3e44

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