Class: RbacRls::Role
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- RbacRls::Role
- Defined in:
- app/models/rbac_rls/role.rb
Instance Method Summary collapse
Instance Method Details
#validate_destroy ⇒ Object
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 |