Class: Noodall::AppGenerator

Inherits:
Rails::Generators::AppGenerator
  • Object
show all
Defined in:
lib/noodall/generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



35
36
37
# File 'lib/noodall/generator.rb', line 35

def self.source_root
  @_source_root ||= File.expand_path('../templates', __FILE__)
end

Instance Method Details

#builderObject



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