app/jobs/send_periodic_emails_job.rb
# returns an enumaration of the people subscribed to the items in the logs
returns an enumaration of the people subscribed to the items in the logs
returns an enumaration of the people subscribed to the items in the logs
def people_subscribed_to_logged_items(logs)
    items = logs.collect(&:activity_loggable).uniq.compact
    items.collect do |item|
      Subscription.where(subscribable_type: item.class.name, subscribable_id: item.id).collect(&:person)
    end.flatten.compact.uniq
  end
def people_subscribed_to_logged_items ( logs ) items = logs . collect ( & :activity_loggable ) . uniq . compact items . collect do | item | Subscription . where ( subscribable_type : item . class . name , subscribable_id : item . id ) . collect ( & :person ) end . flatten . compact . uniq end
returns an enumaration of the people subscribed to the items in the logs
returns an enumaration of the people subscribed to the items in the logs
logs