Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- legdata = ConfigWageDescription.new
- regsal = ConfigWageDescription.new
- [legdata, regsal].each do |x|
- x.inactive_ind = 0
- [:created_user_login, :updated_user_login].each do |y|
- x.y = "batch_ops"
- end
- end
- legdata.wage_file_entry_description = "Legacy Data"
- regsal.wage_file_entry_description = "Regular Salary"
- legdata.created_user_login = "batch_ops"
- legdata.updated_user_login = "batch_ops"
- legdata.wage_file_entry_description = "Legacy Data"
- legdata.inactive_ind = 0
- regsal.created_user_login = "batch_ops"
- regsal.updated_user_login = "batch_ops"
- regsal.wage_file_entry_description = "Regular Salary"
- regsal.inactive_ind = 0
- raise unless legdata.save
- raise unless regsal.save
Add Comment
Please, Sign In to add comment