In my generator:
module MyNamespace
class ScaffoldGenerator < Rails::Generators::ScaffoldGenerator
# bunch of remove_hook_for
def create_my_model
MyNamespace::MyModelGenerator.start
end
end
end
And it generates everything as need, but how to handle destroy command with it?
Instead
MyNamespace::MyModelGenerator.startI used
invoke MyNamespace::MyModelGeneratorand it works great.