lorenso/cancancan — pull request #1 by lorenso (2014-08-27 03:49:56+00:00)
Title: Master

Before: Build resource with assign attributes
After: First build resource, second assign attributes

Why?
`@product.images.new image: params[:image]`
Attribute `image` depends for `product`, but if build resource with assign attributes, then raise error (product_id: nil).