lib/seek/publishing/publishing_common.rb
# recipients can be :gatekeepers or :managers
recipients can be :gatekeepers or :managers
recipients can be : gatekeepers or : managers
def gather_recipients_for_items(items, recipients)
        recipient_items = {}
        items.each do |item|
          item.send(recipients).each do |person|
            recipient_items[person] ||= []
            recipient_items[person] << item
          end
        end
        recipient_items
      end
def gather_recipients_for_items ( items , recipients ) recipient_items = { } items . each do | item | item . send ( recipients ) . each do | person | recipient_items [ person ] ||= [ ] recipient_items [ person ] << item end end recipient_items end
recipients can be :gatekeepers or :managers
recipients can be : gatekeepers or : managers
items
recipients