app/repository_models/curation_concern/model.rb in curate-0.6.5 vs app/repository_models/curation_concern/model.rb in curate-0.6.6

- old
+ new

@@ -10,10 +10,15 @@ included do has_metadata 'properties', type: Curate::PropertiesDatastream has_attributes :relative_path, :depositor, :owner, :representative, datastream: :properties, multiple: false class_attribute :human_readable_short_description + + has_and_belongs_to_many :editors, class_name: "::Person", property: :has_editor, inverse_of: :is_editor_of + accepts_nested_attributes_for :editors, allow_destroy: true, reject_if: :all_blank + has_and_belongs_to_many :editor_groups, class_name: "::Hydramata::Group", property: :has_editor_group, inverse_of: :is_editor_group_of + accepts_nested_attributes_for :editor_groups, allow_destroy: true, reject_if: :all_blank end def as_json(options) { pid: pid, title: title, model: self.class.to_s, curation_concern_type: human_readable_type } end @@ -39,10 +44,9 @@ def to_partial_path "curation_concern/#{super}" end def can_be_member_of_collection?(collection) - return false if collection.is_a?(Organization) collection == self ? false : true end protected