lib/potassium/templates/application/generator.rb in potassium-1.2.0 vs lib/potassium/templates/application/generator.rb in potassium-1.2.1
- old
+ new
@@ -1,12 +1,12 @@
-require 'rails/generators'
-require 'rails/generators/rails/app/app_generator'
-require 'inquirer'
+require "rails/generators"
+require "rails/generators/rails/app/app_generator"
+require "inquirer"
module Potassium
class ApplicationGenerator < Rails::Generators::AppGenerator
def finish_template
- require_relative './helpers/template-dsl'
+ 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