Guest User

Untitled

a guest
Apr 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. legdata = ConfigWageDescription.new
  2. regsal = ConfigWageDescription.new
  3.  
  4. [legdata, regsal].each do |x|
  5. x.inactive_ind = 0
  6. [:created_user_login, :updated_user_login].each do |y|
  7. x.y = "batch_ops"
  8. end
  9. end
  10. legdata.wage_file_entry_description = "Legacy Data"
  11. regsal.wage_file_entry_description = "Regular Salary"
  12.  
  13. legdata.created_user_login = "batch_ops"
  14. legdata.updated_user_login = "batch_ops"
  15. legdata.wage_file_entry_description = "Legacy Data"
  16. legdata.inactive_ind = 0
  17. regsal.created_user_login = "batch_ops"
  18. regsal.updated_user_login = "batch_ops"
  19. regsal.wage_file_entry_description = "Regular Salary"
  20. regsal.inactive_ind = 0
  21.  
  22. raise unless legdata.save
  23. raise unless regsal.save
Add Comment
Please, Sign In to add comment