Class: ActiveAcl::AclSection
- Defined in:
- app/models/active_acl/acl_section.rb
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
13 14 15 16 17 18 19 20 |
# File 'app/models/active_acl/acl_section.rb', line 13 def before_destroy #:nodoc: if members.empty? true else errors.add_to_base("Can't delete a section with associated ACLs") false end end |