Skip to content

Commit c31f5a0

Browse files
committed
Revert application_form_class change and add commentary
1 parent eab8393 commit c31f5a0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/models/flex/case.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ def self.business_process
3838
# Returns the application form class for this case class.
3939
# Subclasses can override this method to customize the application form class naming.
4040
def self.application_form_class
41-
name.sub("Case", "ApplicationForm").constantize
41+
# We want to return the class name as a string due to a build issue, which is resolvable in upgrading to Rails 8.
42+
# Method call will need to constantize downstream.
43+
name.sub("Case", "ApplicationForm")
4244
end
4345
attribute :application_form_id, :uuid
4446

0 commit comments

Comments
 (0)