Class: RbacRls::Role

Inherits:
ApplicationRecord show all
Defined in:
app/models/rbac_rls/role.rb

Instance Method Summary collapse

Instance Method Details

#validate_destroyObject



14
15
16
17
18
# File 'app/models/rbac_rls/role.rb', line 14

def validate_destroy
  if not can_destroy?
    self.errors.add(:base, @error)
  end
end