Skip to content

Commit 46568dc

Browse files
TSS-41: Remove unused business_process attribute from Flex::Case (#79)
This PR removes the unused `business_process` attribute from the `Flex::Case` class as it appears to be unused throughout the codebase. ## Changes - Removed line `protected attr_accessor :business_process` from `app/models/flex/case.rb` --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 9ccd403 commit 46568dc

3 files changed

Lines changed: 0 additions & 9 deletions

File tree

app/models/flex/case.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ class Case < ApplicationRecord
2525

2626
attribute :business_process_current_step, :string
2727

28-
protected attr_accessor :business_process
29-
3028
# Closes the case, changing its status to 'closed'.
3129
#
3230
# @return [Boolean] True if the save was successful
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
class PassportCase < Flex::Case
22
readonly attribute :passport_id, :string, default: -> { SecureRandom.uuid } # always defaults to a new UUID
3-
4-
def business_process
5-
PassportBusinessProcess
6-
end
73
end

spec/dummy/app/models/test_case.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
class TestCase < Flex::Case
22
# A simple test case to test the Case abstract class functionality
33
# This class should not have any custom functionality added to it
4-
def business_process
5-
TestBusinessProcess
6-
end
74
end

0 commit comments

Comments
 (0)