From 3c6965a603591cfd37586a11601145d4fc5b6255 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Tue, 26 Nov 2013 10:02:45 +0800 Subject: [PATCH] Added back auth object --- app/models/module_app.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/module_app.rb b/app/models/module_app.rb index 006b8404..8218731b 100644 --- a/app/models/module_app.rb +++ b/app/models/module_app.rb @@ -196,6 +196,7 @@ class ModuleApp def update_auth_sub_manager_users user_ids = self.auth_sub_managers.inject([]) do |users, auth| + auth = auth.class.find(auth.id) users += auth.authorized_users.map{|user| user.id} end self.update_attribute(:auth_sub_manager_users, user_ids.uniq)