Accidently started websocketing albums

This commit is contained in:
ilya 2010-07-21 18:22:57 -07:00
parent a6104fd2b5
commit 5a5842dbdc

View file

@ -18,7 +18,6 @@ class Album
before_destroy :destroy_photos
after_save :send_to_view
def prev_photo(photo)
n_photo = self.photos.where(:created_at.lt => photo.created_at).sort(:created_at.desc).first
n_photo ? n_photo : self.photos.sort(:created_at.desc).first
@ -34,7 +33,5 @@ class Album
def destroy_photos
photos.each{|p| p.destroy}
end
def send_to_view
SocketsController.new.outgoing(self)
end
end