Skip to content

Instantly share code, notes, and snippets.

@marzdgzmn
Created March 20, 2019 06:11
Show Gist options
  • Save marzdgzmn/6b13cb8147c857d30f58b44c7a25497c to your computer and use it in GitHub Desktop.
Save marzdgzmn/6b13cb8147c857d30f58b44c7a25497c to your computer and use it in GitHub Desktop.
attributes = %w(item_id revision app app_item_id app_item_id_formatted external_id
title fields rights created_on ratings conversations tasks references
refs tags subscribed pinned user_ratings link invite participants linked_account_id
ref priority excerpt is_liked like_count push presence comment_count task_count file_ids)
attributes.each do |p|
item_instance.send("#{p}=", item.send("#{p}"))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment