From 38cb4e258e980202d1ca7f0b5d85700fcda6430a Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Fri, 18 Oct 2013 15:43:25 +0100 Subject: [PATCH] Fix song id. --- models/song.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/song.rb b/models/song.rb index 2a78f5b..490f349 100644 --- a/models/song.rb +++ b/models/song.rb @@ -3,8 +3,7 @@ require './models/mpd_connection' class Song < Struct.new(:id, :artist, :album, :title, :playing) def initialize(song, playing: false) - @song = song - self.id = song.songid + self.id = song.id self.artist = song.artist self.album = song.album self.title = song.title