daily pastebin goal
78%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2018 42 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
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