app/repository_models/generic_file.rb in curate-0.1.3 vs app/repository_models/generic_file.rb in curate-0.2.0
- old
+ new
@@ -10,9 +10,12 @@
belongs_to :batch, property: :is_part_of, class_name: 'ActiveFedora::Base'
validates :batch, presence: true
validates :file, presence: true, on: :create
+ class_attribute :human_readable_short_description
+ self.human_readable_short_description = "An arbitrary single file."
+
attr_accessor :file, :version
def filename
content.label
end