lib/generators/makers/install/install_generator.rb in makers-4.0.0.4 vs lib/generators/makers/install/install_generator.rb in makers-5.1.0

- old
+ new

@@ -5,15 +5,10 @@ class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def create_definitions_file - if Dir.exist?(Rails.root.join('spec')) - directory = 'spec' - else - directory = 'test' - end - template 'definitions.rb', "#{directory}/makers.rb" + template 'definitions.rb', "#{Makers.directory}/makers.rb" end end end end