Padrino::Generators

Module: Padrino::Generators

Overview

This module it's used for register generators.

Can be useful for 3rd party generators:

# custom_generator.rb
class CustomGenerator < Thor::Group
  Padrino::Generators.add_generator(:custom_generator, self)
end

Now for handle generators in padrino you need to add it to into load_paths.

Padrino::Generators.load_paths << “custom_generator.rb”

Defined Under Namespace

Modules: Actions, Admin, 登录查看完整内容