sul-dlss/argo

View on GitHub
app/forms/application_change_set.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

# A superclass for the change sets that handles forms backed by Cocina objects
class ApplicationChangeSet < Reform::Form
  # needed for generating the update route
  def to_param
    model.externalIdentifier
  end

  def persisted?
    model.present?
  end
end