move processing to photo callback

This commit is contained in:
maxwell 2011-03-16 23:44:41 -07:00
parent 7ba90a5a98
commit 58282b91cb
2 changed files with 1 additions and 1 deletions

View file

@ -56,7 +56,6 @@ class StatusMessagesController < ApplicationController
end
end
photos.update_all(:pending => false, :public => public_flag)
photos.each{|x| x.queue_processing_job; puts "i did it"}
end
if request.env['HTTP_REFERER'].include?("people")

View file

@ -18,6 +18,7 @@ class Photo < Post
validate :ownership_of_status_message
before_destroy :ensure_user_picture
after_create :queue_processing_job
def ownership_of_status_message
message = StatusMessage.find_by_id(self.status_message_id)