Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 278 Bytes
class FacebookShare < Share
belongs_to :item
after_create :enqueue
protected
def enqueue
if Rails.env.production?
FacebookQueue.perform_async(self.id)
else
Rails.logger.info(" Queue: Updating Facebook status: #{self.id}")
end
end
end
Something went wrong with that request. Please try again.