undefined method :new_record?
when loading new form for Monograph
#5447
Labels
undefined method :new_record?
when loading new form for Monograph
#5447
See Issue #5462 which has the same underlying failure.
Descriptive summary
When attempting to create a new Monograph work, which is a Valkyrie::Resource, exception
undefined method :new_record?
occurs as the new form loads.Rationale
Creating a new record is core functionality and should be error free for Valkyrie works.
Expected behavior
Dashboard -> Works -> Add new work -> select type: Monograph -> Create work, should load the new work form.
Actual behavior
Dashboard -> Works -> Add new work -> select type: Monograph -> Create work, raises an exception:
NOTE: The problem is that Valkyrie works do not respond to
:new_record?
. They do respond to:persisted?
which will be false when it is a new work.Steps to reproduce the behavior
Prerequisite:
To reproduce:
Raises the exception seen under Actual behavior section
The text was updated successfully, but these errors were encountered: