diff --git a/app/models/module_app.rb b/app/models/module_app.rb index 28284053..740d0d18 100644 --- a/app/models/module_app.rb +++ b/app/models/module_app.rb @@ -185,18 +185,18 @@ class ModuleApp user_ids = self.auth_approvals.inject([]) do |users, auth| users += auth.authorized_users.map{|user| user.id} end - update_attribute(:auth_approval_users, user_ids.uniq) + self.update_attribute(:auth_approval_users, user_ids.uniq) end def update_auth_manager_users - update_attribute(:auth_manager_users, self.auth_manager_authorized_users.map{|user| user.id}) + self.update_attribute(:auth_manager_users, self.auth_manager_authorized_users.map{|user| user.id}) end def update_auth_sub_manager_users user_ids = self.auth_sub_managers.inject([]) do |users, auth| users += auth.authorized_users.map{|user| user.id} end - update_attribute(:auth_sub_manager_users, user_ids.uniq) + self.update_attribute(:auth_sub_manager_users, user_ids.uniq) end def managers diff --git a/app/views/admin/categories/_category.html.erb b/app/views/admin/categories/_category.html.erb index ad98735b..de09e970 100644 --- a/app/views/admin/categories/_category.html.erb +++ b/app/views/admin/categories/_category.html.erb @@ -10,7 +10,7 @@