Skip to content

Commit

Permalink
code review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dtgreiner committed Oct 11, 2024
1 parent bcd9e9b commit b896e14
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/models/match_decisions/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def contact_name
def editable?
# can this decision be updated by a notification response?
# override this default behavior in subclasses
initialized? && match_open? && saved_status !~ /\A(accepted|acknowledged|confirmed|declined|canceled|rejected|complete|completed|scheduled|no_hearing|mitigation_required|mitigation_not_required|decline_overridden|decline_overridden_returned|decline_confirmed)\z/
initialized? && match_open? && saved_status !~ /\A(accepted|confirmed|declined|canceled|rejected|complete|completed|scheduled|no_hearing|mitigation_required|mitigation_not_required|decline_overridden|decline_overridden_returned|decline_confirmed)\z/
end

def expires?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class ElevenConfirmMatchSuccessDndStaff < ::MatchDecisions::Base
include MatchDecisions::AcceptsDeclineReason
include MatchDecisions::RouteElevenDeclineReasons
include MatchDecisions::RouteElevenCancelReasons
# validate :note_present_if_status_rejected

def to_partial_path
'match_decisions/eleven/confirm_match_success_dnd_staff'
Expand All @@ -19,7 +18,6 @@ def statuses
{
pending: 'Pending',
confirmed: 'Confirmed',
rejected: 'Rejected', # Not currently used
declined: 'Declined',
canceled: 'Canceled',
back: 'Pending',
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20241010194153_destroy_route_eleven_matches.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class DestroyRouteElevenMatches < ActiveRecord::Migration[7.0]
def change
def up
ClientOpportunityMatch.joins(:match_route).where(match_routes: { type: 'MatchRoutes::Eleven' }).destroy_all unless Rails.env.production?
end
end

0 comments on commit b896e14

Please sign in to comment.