move processing to photo callback
This commit is contained in:
parent
7ba90a5a98
commit
58282b91cb
2 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue