Class: Potassium::ApplicationGenerator

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

Instance Method Summary collapse

Instance Method Details

#finish_templateObject



7
8
9
10
11
12
13
# File 'lib/potassium/templates/application/generator.rb', line 7

def finish_template
  require_relative "./helpers/template-dsl"
  TemplateDSL.extend_dsl(self, source_path: __FILE__)
  template_location = File.expand_path('./template.rb', File.dirname(__FILE__))
  instance_eval File.read(template_location), template_location
  super
end