- Timestamp:
- Apr 1, 2015, 11:13:13 AM (9 years ago)
- Branches:
- master, PerfilGrupal, modelo_minuta, profile_fields
- Children:
- 69f56b6
- Parents:
- 412c4bc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/postzord/dispatcher.rb
r412c4bc r5136393 37 37 38 38 def self.defer_build_and_post(user, object, opts={}) 39 puts "*** BREAK POINT 1 (defer_build) ***" 39 40 opts[:additional_subscribers] ||= [] 40 41 if opts[:additional_subscribers].present? 41 42 opts[:additional_subscribers] = [*opts[:additional_subscribers]].map(&:id) 42 43 end 44 puts "*** BREAK POINT 2 (defer_build) ***" 43 45 44 46 if opts[:to].present? 45 47 opts[:to] = [*opts[:to]].map {|e| e.respond_to?(:id) ? e.id : e } 46 48 end 47 49 puts "*** BREAK POINT 3 (defer_build) ***" 48 50 Workers::DeferredDispatch.perform_async(user.id, object.class.to_s, object.id, opts) 51 puts "*** BREAK POINT 4 (defer_build) ***" 49 52 end 50 53
Note: See TracChangeset
for help on using the changeset viewer.