app/models/lesli/role/power.rb in lesli-5.0.5 vs app/models/lesli/role/power.rb in lesli-5.0.6

- old
+ new

@@ -33,14 +33,14 @@ module Lesli class Role::Power < ApplicationLesliRecord belongs_to :role belongs_to :descriptor - after_save :synchronize_privileges - after_destroy :synchronize_privileges + after_commit :synchronize_privileges + #after_destroy :synchronize_privileges def synchronize_privileges - RolePowerOperator.new(self.role.id).synchronize + RoleDescriptorOperator.new(self.role.id).synchronize end def self.index current_user, query, role #role.descriptors