lib/generators/spree_faq/install/install_generator.rb in spree-faq-2.1.1 vs lib/generators/spree_faq/install/install_generator.rb in spree-faq-2.2.0

- old
+ new

@@ -2,16 +2,16 @@ module Generators class InstallGenerator < Rails::Generators::Base class_option :auto_run_migrations, type: :boolean, default: false def add_javascripts - append_file 'app/assets/javascripts/store/all.js', "//= require store/spree_faq\n" - append_file 'app/assets/javascripts/admin/all.js', "//= require admin/spree_faq\n" + append_file 'vendor/assets/javascripts/spree/frontend/all.js', "//= require spree/frontend/spree_faq\n" + append_file 'vendor/assets/javascripts/spree/backend/all.js', "//= require spree/backend/spree_faq\n" end def add_stylesheets - inject_into_file 'app/assets/stylesheets/store/all.css', " *= require store/spree_faq\n", before: /\*\//, verbose: true - inject_into_file 'app/assets/stylesheets/admin/all.css', " *= require admin/spree_faq\n", before: /\*\//, verbose: true + inject_into_file 'vendor/assets/stylesheets/spree/frontend/all.css', " *= require spree/frontend/spree_faq\n", before: /\*\//, verbose: true + inject_into_file 'vendor/assets/stylesheets/spree/backend/all.css', " *= require spree/backend/spree_faq\n", before: /\*\//, verbose: true end def add_migrations run 'bundle exec rake railties:install:migrations FROM=spree_faq' end