Rework artist versions index view

- Added a changes column explicitly listing all of the changes
-- This makes it more in line with the other version views now
- Does a symmetric difference on the array fields to detect changes
This commit is contained in:
BrokenEagle
2020-02-08 08:25:36 +00:00
parent de1324098d
commit 7b1efd1204
3 changed files with 46 additions and 15 deletions

View File

@@ -1,8 +1,4 @@
module ArtistVersionsHelper
def artist_versions_listing_type
(params.dig(:search, :artist_id).present? && CurrentUser.is_member?) ? :revert : :standard
end
def artist_version_other_names_diff(artist_version)
new_names = artist_version.other_names
old_names = artist_version.previous.try(:other_names)