Closed superslau closed 4 years ago
We use uuids for our models, and when generating new resources, we have to manually fix them to get them passing.
This commit adds an option to the generator to use GraphitiSpecHelpers::Node#rawid instead of GraphitiSpecHelpers::Node#id.
GraphitiSpecHelpers::Node#rawid
GraphitiSpecHelpers::Node#id
Specify --rawid option when using the graphiti generator, e.g.
--rawid
rails g graphiti:resource Account --model Account --rawid
Makes sense to me, thanks @superslau !
Released in 0.2.3
0.2.3
We use uuids for our models, and when generating new resources, we have to manually fix them to get them passing.
This commit adds an option to the generator to use
GraphitiSpecHelpers::Node#rawid
instead ofGraphitiSpecHelpers::Node#id
.Specify
--rawid
option when using the graphiti generator, e.g.