From cf5049f88b97f1a813b5b465500127506febb3b0 Mon Sep 17 00:00:00 2001 From: Nicholas La Roux Date: Fri, 5 Apr 2019 15:32:20 +0900 Subject: =?UTF-8?q?Burn=20unnecessary=20files=20=F0=9F=94=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/rails/generators/js/assets/assets_generator.rb | 15 --------------- .../rails/generators/js/assets/templates/javascript.js | 2 -- .../rails/generators/rails/assets/templates/javascript.js | 2 -- 3 files changed, 19 deletions(-) delete mode 100644 railties/lib/rails/generators/js/assets/assets_generator.rb delete mode 100644 railties/lib/rails/generators/js/assets/templates/javascript.js delete mode 100644 railties/lib/rails/generators/rails/assets/templates/javascript.js (limited to 'railties') diff --git a/railties/lib/rails/generators/js/assets/assets_generator.rb b/railties/lib/rails/generators/js/assets/assets_generator.rb deleted file mode 100644 index a45cfc5a1c..0000000000 --- a/railties/lib/rails/generators/js/assets/assets_generator.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -require "rails/generators/named_base" - -module Js # :nodoc: - module Generators # :nodoc: - class AssetsGenerator < Rails::Generators::NamedBase # :nodoc: - source_root File.expand_path("templates", __dir__) - - def copy_javascript - copy_file "javascript.js", File.join("app/javascript", class_path, "#{file_name}.js") - end - end - end -end diff --git a/railties/lib/rails/generators/js/assets/templates/javascript.js b/railties/lib/rails/generators/js/assets/templates/javascript.js deleted file mode 100644 index 6f10efeb33..0000000000 --- a/railties/lib/rails/generators/js/assets/templates/javascript.js +++ /dev/null @@ -1,2 +0,0 @@ -// Place all the behaviors and hooks related to the matching controller here. -// All this logic will automatically be available in application.js. diff --git a/railties/lib/rails/generators/rails/assets/templates/javascript.js b/railties/lib/rails/generators/rails/assets/templates/javascript.js deleted file mode 100644 index 6f10efeb33..0000000000 --- a/railties/lib/rails/generators/rails/assets/templates/javascript.js +++ /dev/null @@ -1,2 +0,0 @@ -// Place all the behaviors and hooks related to the matching controller here. -// All this logic will automatically be available in application.js. -- cgit v1.2.3