Skip to content

Commit

Permalink
oups
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur PETRY committed Sep 11, 2011
1 parent e755d8c commit d21cd6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/album.rb
Expand Up @@ -39,6 +39,11 @@ def self.find_or_create_by_artist_and_name(artist,name)
album
end


def track_ids
@track_ids ||= []
end

def tracks
return @tracks if @tracks
@tracks = Track.find(:all, :conditions => {:_id => track_ids}, :order => 'nb')
Expand Down

0 comments on commit d21cd6e

Please sign in to comment.