Class: Container::Box

Inherits:
Container show all
Defined in:
app/models/container/box.rb

Constant Summary

Constants included from SoftValidation

SoftValidation::ANCESTORS_WITH_SOFT_VALIDATIONS

Instance Attribute Summary

Attributes inherited from Container

#disposition, #name, #print_label, #project_id, #size_x, #size_y, #size_z, #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, #is_empty?, #is_full?, #is_nested?, #size, #type_is_valid

Methods included from Shared::IsData

#errors_excepting, #full_error_messages_excepting, #identical, #is_community?, #is_destroyable?, #is_editable?, #is_in_use?, #is_in_users_projects?, #metamorphosize, #similar

Methods included from Shared::Labels

#labeled?

Methods included from Shared::Loanable

#has_been_loaned?, #loan_return_date, #on_loan?, #times_loaned

Methods included from SoftValidation

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

Methods included from Shared::Tags

#reject_tags, #tag_with, #tagged?, #tagged_with?

Methods included from Shared::Identifiers

#identified?, #next_by_identifier, #previous_by_identifier, #reject_identifiers

Methods included from Housekeeping

#has_polymorphic_relationship?

Methods inherited from ApplicationRecord

transaction_with_retry

Class Method Details

.valid_parentsObject



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

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