Method: Treat::Workers::Categorizable#bind_group_targets
- Defined in:
- lib/treat/workers/categorizable.rb
#bind_group_targets(group) ⇒ Object
75 76 77 78 79 80 81 82 83 |
# File 'lib/treat/workers/categorizable.rb', line 75 def bind_group_targets(group) group.targets.each do |entity_type| entity = Treat::Entities. const_get(entity_type.cc) entity.class_eval do add_workers group end end end |