Class: DerivedCollectionObject
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- DerivedCollectionObject
- Includes:
- Housekeeping, Shared::IsData
- Defined in:
- app/models/derived_collection_object.rb
Overview
A derived collect object is…
@todo
Instance Attribute Summary collapse
- #collection_object_id ⇒ Integer
- #collection_object_observation_id ⇒ Integer
- #position ⇒ Integer
-
#project_id ⇒ Integer
the project ID.
Method Summary
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 Housekeeping
#has_polymorphic_relationship?
Methods inherited from ApplicationRecord
Instance Attribute Details
#collection_object_id ⇒ Integer
TODO:
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'app/models/derived_collection_object.rb', line 20 class DerivedCollectionObject < ApplicationRecord include Housekeeping include Shared::IsData acts_as_list scope: [:project_id, :collection_object_observation_id] belongs_to :collection_object, inverse_of: :derived_collection_objects belongs_to :collection_object_observation, inverse_of: :derived_collection_objects validates_presence_of :collection_object_id validates_presence_of :collection_object_observation_id validates_uniqueness_of :collection_object_id, scope: [ :collection_object_observation_id ] end |
#collection_object_observation_id ⇒ Integer
TODO:
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'app/models/derived_collection_object.rb', line 20 class DerivedCollectionObject < ApplicationRecord include Housekeeping include Shared::IsData acts_as_list scope: [:project_id, :collection_object_observation_id] belongs_to :collection_object, inverse_of: :derived_collection_objects belongs_to :collection_object_observation, inverse_of: :derived_collection_objects validates_presence_of :collection_object_id validates_presence_of :collection_object_observation_id validates_uniqueness_of :collection_object_id, scope: [ :collection_object_observation_id ] end |
#position ⇒ Integer
TODO:
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'app/models/derived_collection_object.rb', line 20 class DerivedCollectionObject < ApplicationRecord include Housekeeping include Shared::IsData acts_as_list scope: [:project_id, :collection_object_observation_id] belongs_to :collection_object, inverse_of: :derived_collection_objects belongs_to :collection_object_observation, inverse_of: :derived_collection_objects validates_presence_of :collection_object_id validates_presence_of :collection_object_observation_id validates_uniqueness_of :collection_object_id, scope: [ :collection_object_observation_id ] end |
#project_id ⇒ Integer
the project ID
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'app/models/derived_collection_object.rb', line 20 class DerivedCollectionObject < ApplicationRecord include Housekeeping include Shared::IsData acts_as_list scope: [:project_id, :collection_object_observation_id] belongs_to :collection_object, inverse_of: :derived_collection_objects belongs_to :collection_object_observation, inverse_of: :derived_collection_objects validates_presence_of :collection_object_id validates_presence_of :collection_object_observation_id validates_uniqueness_of :collection_object_id, scope: [ :collection_object_observation_id ] end |