From 6b9a3fc5187fa82f6c09229cb895ea708d789a9f Mon Sep 17 00:00:00 2001 From: ilya Date: Wed, 21 Jul 2010 18:26:03 -0700 Subject: [PATCH] Pushing Albums out --- app/models/album.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/album.rb b/app/models/album.rb index 855315822..c62823634 100644 --- a/app/models/album.rb +++ b/app/models/album.rb @@ -17,6 +17,7 @@ class Album validates_presence_of :name before_destroy :destroy_photos + after_save :notify_people def prev_photo(photo) n_photo = self.photos.where(:created_at.lt => photo.created_at).sort(:created_at.desc).first