lib/generators/timequake/install_generator.rb in timequake-2.1.0 vs lib/generators/timequake/install_generator.rb in timequake-3.0.0
- old
+ new
@@ -12,12 +12,9 @@
# directory "timequake", "app/assets/stylesheets/timequake"
template "timequake_overrides.scss", File.join('app/assets/stylesheets', "timequake_overrides.scss")
insert_into_file File.join('app/assets/stylesheets', "application.scss"), "@import 'timequake_overrides';\n"
- insert_into_file File.join('app/views/layouts', "application.html.erb"), "\n <meta name='viewport' content='width=device-width, initial-scale=1.0'>", after: "<head>"
- insert_into_file File.join('app/assets/javascripts', "application.js"), "//= require timequake\n", :before => "//= require_tree .\n"
- insert_into_file File.join('app/assets/config', "manifest.js"), "//= link timequake_manifest.js"
# For webpacker
# insert_into_file File.join('app/views/layouts', "application.html.erb"), " <%= javascript_include_tag 'timequake' %>\n", before: "</head>"
end
end