diff --git a/lib/wings/active_fedora_converter/default_work.rb b/lib/wings/active_fedora_converter/default_work.rb index 0c7ca3b25a..9e9b8e9257 100644 --- a/lib/wings/active_fedora_converter/default_work.rb +++ b/lib/wings/active_fedora_converter/default_work.rb @@ -27,7 +27,7 @@ def initialize(key) # # @return [void] apply the property def apply(klass) - return if klass.properties.keys.include?(name) || + return if klass.properties.keys.include?(name.to_s) || klass.protected_property_name?(name) klass.send(definition_method, name, options) end @@ -98,6 +98,7 @@ class DefaultWork < ActiveFedora::Base include Hyrax::Noid include Hyrax::Permissions include Hydra::AccessControls::Embargoable + include Hyrax::CoreMetadata property :nested_resource, predicate: ::RDF::URI("http://example.com/nested_resource"), class_name: "Wings::ActiveFedoraConverter::NestedResource" validates :lease_expiration_date, 'hydra/future_date': true, on: :create