Class: ActiveAcl::AclSection
- Defined in:
- lib/active_acl/acl_section.rb
Overview
Groups Acl model objects into different sections to provide better overview in the admin screens. Has no meaning in permission resolution.
Instance Method Summary collapse
-
#before_destroy ⇒ Object
Make shure there are no associated acls before destroying a section.
Instance Method Details
#before_destroy ⇒ Object
Make shure there are no associated acls before destroying a section
12 13 14 15 16 17 18 19 |
# File 'lib/active_acl/acl_section.rb', line 12 def before_destroy if members.empty? true else errors.add_to_base("Can't delete a section with associated ACLs") false end end |