Skip to content

Instantly share code, notes, and snippets.

@cyrilchampier
Last active August 29, 2015 14:13
Show Gist options
  • Save cyrilchampier/066de138bc168ce4d125 to your computer and use it in GitHub Desktop.
Save cyrilchampier/066de138bc168ce4d125 to your computer and use it in GitHub Desktop.
> m2 = model3d_file.clone
=> #<ModModel3dFile id: 1, uuid: "28b2f60f-c569-4d8b-9783-26661f303433", created_at: "2015-01-14 16:42:48", updated_at: "2015-01-14 16:42:48", file: "98b2e7f0-76ff-4721-90bf-482457343d5b.ZIP", original_filename: "character_blend.ZIP", model3d_id: nil, owner_id: 1, processing_state: "pending", processed_file: "8003773c-4c14-46f4-aeac-30cc5adafd11.ZIP_preproces...">
> m2.model3d
=> nil
> create(:model3d, model3d_file: model3d_file)
=> #<Model3d id: 1, name: "Model3d 1", description: nil, created_at: "2015-01-14 16:43:36", updated_at: "2015-01-14 16:43:36", author: nil, is_temp: false, tags: nil, owner_id: 2, uuid: "fdf3d382-cd9e-41eb-8fc0-758fde80f929", model_url: nil, website_url: nil, is_public: true, category: "characters", review_state: nil>
> m2.model3d
=> #<Model3d id: 1, name: "Model3d 1", description: nil, created_at: "2015-01-14 16:43:36", updated_at: "2015-01-14 16:43:36", author: nil, is_temp: false, tags: nil, owner_id: 2, uuid: "fdf3d382-cd9e-41eb-8fc0-758fde80f929", model_url: nil, website_url: nil, is_public: true, category: "characters", review_state: nil>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment