diff --git a/lib/generators/godmin/install/install_generator.rb b/lib/generators/godmin/install/install_generator.rb index 4f8cc0e6..4635c9e7 100644 --- a/lib/generators/godmin/install/install_generator.rb +++ b/lib/generators/godmin/install/install_generator.rb @@ -24,6 +24,8 @@ def modify_application_controller def modify_application_js application_js = File.join("app/assets/javascripts", namespaced_path, "application.js") + create_file(application_js, "//= require_tree .") unless File.exists?(application_js) + inject_into_file application_js, before: "//= require_tree ." do <<-END.strip_heredoc //= require moment