daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2018 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @array1.each do |a1|
  2.   case a1.mapped_field
  3.     when 'value1'
  4.       @array2[a1.field_id] = value_1
  5.     when 'value2'
  6.       @array2[a1.field_id] = value_2
  7.     when 'value3'
  8.       @array2[a1.field_id] = value_3
  9.     when 'value4'
  10.       @array2[a1.field_id] = value_4
  11.     when 'value5'
  12.       @array2[a1.field_id] = value_4
  13.   end
  14. end
RAW Paste Data
Top