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