lib/generators/rails/command_generator.rb in lite-command-1.0.9 vs lib/generators/rails/command_generator.rb in lite-command-1.0.10
- old
+ new
@@ -8,10 +8,9 @@
source_root File.expand_path('../templates', __FILE__)
check_class_collision suffix: 'Command'
def copy_files
path = File.join('app', 'commands', class_path, "#{file_name}_command.rb")
- empty_directory('app/commands')
template('command.rb.tt', path)
end
private