Skip to content

Commit eab8393

Browse files
Call constantize on string prior to .find call (#192)
## Changes Somehow these changes were made without the tests failing, but we are passing a string back as the class. We need to return it as a Ruby constant class name in order to call methods on it.
1 parent 5d69a01 commit eab8393

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/flex/case.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ 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")
41+
name.sub("Case", "ApplicationForm").constantize
4242
end
4343
attribute :application_form_id, :uuid
4444

0 commit comments

Comments
 (0)