SHARE
TWEET

Untitled

a guest May 22nd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def generate_event_uploaders
  2.     group_uploads = event_uploads.group_by { |config| config['event_group'] }
  3.  
  4.     byebug
  5.     uploaders = group_uploads
  6.       .select { |group, config| group.blank? || config.length == 1 }
  7.       .values
  8.       .flatten
  9.       .map { |config| generate_event_uploader(config) }
  10.     uploaders << group_uploads
  11.       .select { |config| config.length > 1 }
  12.       .map { |group, config| generate_group_event_uploader(group, config) }
  13.  
  14.     uploaders << generate_creditor_matrix_uploader if amended && should_upload_creditor_matrix?
  15.     uploaders
  16.   end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top