Class: Container::Folder

Inherits:
Container
  • Object
show all
Defined in:
app/models/container/folder.rb

Constant Summary

Constant Summary

Constants included from SoftValidation

SoftValidation::ANCESTORS_WITH_SOFT_VALIDATIONS

Instance Attribute Summary

Attributes inherited from Container

#disposition, #name, #project_id, #type

Class Method Summary (collapse)

Methods inherited from Container

#add_container_items, #all_collection_object_ids, #all_contained_objects, #all_container_items, #available_space, #check_for_contents, class_name, #collection_object_ids, #collection_objects, #contained_objects, #container_items, containerize, find_for_autocomplete, #is_empty?, #is_full?, #is_nested?, #size, #type_is_valid

Methods included from SoftValidation

#clear_soft_validations, #fix_soft_validations, #soft_fixed?, #soft_valid?, #soft_validate, #soft_validated?, #soft_validations

Methods included from Housekeeping

#has_polymorphic_relationship?

Class Method Details

+ (Object) valid_parents



3
4
5
# File 'app/models/container/folder.rb', line 3

def self.valid_parents
  ['Container::Collection', 'Container::Cabinet', 'Container::Box', 'Container::Shelf', 'Container::Virtual']
end