Accidently started websocketing albums
This commit is contained in:
parent
a6104fd2b5
commit
5a5842dbdc
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue