lib/ez/rails_updater.rb in ez-1.9.9 vs lib/ez/rails_updater.rb in ez-2.0.0

- old
+ new

@@ -54,10 +54,10 @@ return unless Rails.env.development? full_path = File.join(Rails.root, 'app', 'views', folder) FileUtils.mkdir_p(full_path) VIEWS.each do |view| - filename = File.join(full_path, "#{view}.html.erb" + filename = File.join(full_path, "#{view}.html.erb") if !File.exist?(filename) File.open(filename, "w:utf-8") do |file| file.puts "<h1>This is a placeholder page.</h1>" file.puts "<p>To modify this page, edit the template at <code>app/views/#{folder}/#{view}.html.erb</p>" end