Skip to content

Commit

Permalink
call the cops
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf committed Feb 9, 2024
1 parent 166e212 commit 83b3237
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 @@ -27,7 +27,7 @@ def latest?
self.id == if Gem::Version.new(Rails::VERSION) >= 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
self.class.where(statusable_id: self.statusable_id, statusable_type: self.statusable_type).order('id desc').pluck(:id).first # rubocop:disable Rails/Pic
end
end
end
Expand Down

0 comments on commit 83b3237

Please sign in to comment.