Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf committed Feb 9, 2024
1 parent 83b3237 commit b7c4600
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/concerns/bulkrax/status_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module StatusInfo
scope :failed, -> { where(status_message: 'Failed') }
scope :complete, -> { where(status_message: 'Complete') }
scope :pending, -> { where(status_message: 'Pending') }
scope :skipped, -> { where(status_message: 'Skipped') }
end

def current_status
Expand All @@ -28,6 +29,10 @@ def succeeded?
current_status&.status_message&.match(/^Complete$/)
end

def skipped?
current_status&.status_message&.match('Skipped')
end

def status
current_status&.status_message || 'Pending'
end
Expand Down

0 comments on commit b7c4600

Please sign in to comment.