diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/js/assets/assets_generator.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/js/assets/assets_generator.rb b/railties/lib/rails/generators/js/assets/assets_generator.rb index 31a443838c..a45cfc5a1c 100644 --- a/railties/lib/rails/generators/js/assets/assets_generator.rb +++ b/railties/lib/rails/generators/js/assets/assets_generator.rb @@ -1,13 +1,13 @@ # frozen_string_literal: true - require "rails/generators/named_base" +require "rails/generators/named_base" - module Js # :nodoc: +module Js # :nodoc: module Generators # :nodoc: class AssetsGenerator < Rails::Generators::NamedBase # :nodoc: source_root File.expand_path("templates", __dir__) - def copy_javascript + def copy_javascript copy_file "javascript.js", File.join("app/javascript", class_path, "#{file_name}.js") end end |