lib/generators/inky/install_generator.rb in inky-rb-1.3.7.2 vs lib/generators/inky/install_generator.rb in inky-rb-1.3.7.3

- old
+ new

@@ -10,9 +10,10 @@ class_option :haml, desc: "Generate layout in Haml", type: :boolean class_option :slim, desc: "Generate layout in Slim", type: :boolean def preserve_original_mailer_layout return unless layout_name == 'mailer' && extension == 'erb' + original_mailer = File.join(layouts_base_dir, "mailer.html.erb") rename_filename = File.join(layouts_base_dir, "old_mailer_#{Time.now.to_i}.html.erb") File.rename(original_mailer, rename_filename) if File.exist? original_mailer end