Skip to content

Commit

Permalink
fix version string
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf committed Feb 9, 2024
1 parent 2e2b899 commit d82541c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/bulkrax/status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def self.latest_by_statusable_subtable

def latest?
# TODO: remove if statment when we stop supporting Hyrax < 4
self.id == if Gem::Version.new(Rails::VERSION) >= Gem::Version.new('6.0.0')
self.id == if Gem::Version.new(Rails::VERSION::STRING) >= Gem::Version.new('6.0.0')
self.class.where(statusable_id: self.statusable_id, statusable_type: self.statusable_type).order('id desc').pick(:id)
else
self.class.where(statusable_id: self.statusable_id, statusable_type: self.statusable_type).order('id desc').pluck(:id).first # rubocop:disable Rails/Pick
Expand Down

0 comments on commit d82541c

Please sign in to comment.