I would like to change the output destination as follows.
Changing the contents of a file is simple.
This will copy the template file to lib/templates, so please edit it.
It is a little difficult to rewrite the output destination.You must customize the behavior of the generator.There's a mechanism in place, but it's a little hard to explain the steps from scratch, so see Rails guide.
There are two possible policies.
© 2022 OneMinuteCode. All rights reserved.