Fix various rubocop warnings.

This commit is contained in:
evazion
2021-09-27 00:44:41 -05:00
parent a2a4ab887d
commit 79fdfa86ae
39 changed files with 149 additions and 154 deletions

View File

@@ -42,9 +42,7 @@ class ArtistVersion < ApplicationRecord
end
def current
@previous ||= begin
ArtistVersion.where(artist_id: artist_id).order("created_at desc").limit(1).to_a
end
@previous ||= ArtistVersion.where(artist_id: artist_id).order("created_at desc").limit(1).to_a
@previous.first
end