Add after_create to queue an updateserviceusers job on service create. We'll see how it works

This commit is contained in:
Raphael Sofaer 2011-03-23 10:25:45 -07:00
parent 0ae9af74f3
commit 3e8f455cbc

View file

@ -7,6 +7,9 @@ class Service < ActiveRecord::Base
belongs_to :user
has_many :service_users
after_create do
Resque.enqueue(Job::UpdateServiceUsers, self.id) if s.respond_to? :save_friends
end
def public_message(post, length, url = "")
url = "" if post.respond_to?(:photos) && post.photos.count == 0