Class: Noodall::AppGenerator
- Inherits:
-
Rails::Generators::AppGenerator
- Object
- Rails::Generators::AppGenerator
- Noodall::AppGenerator
- Defined in:
- lib/noodall/generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
35 36 37 |
# File 'lib/noodall/generator.rb', line 35 def self.source_root @_source_root ||= File.('../templates', __FILE__) end |
Instance Method Details
#builder ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/noodall/generator.rb', line 39 def builder @builder ||= begin builder_class = AppBuilder builder_class.send(:include, Rails::ActionMethods) builder_class.new(self) end end |