transaction do
albums = {}
artist_csv.each do |line|
albums[line.album] ||= Album.create!(title: line.album)
artist = Artist.new(title: line.title)
artist.album = albums[line.album]
artist.save!
end
end
PrivatePub.publish_to "/notifications/new", message: @activity.to_s
PrivatePub.publish_to "/notifications/new", render(file: 'track_activity.js.erb')