Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Cleanup precompilation
Browse files Browse the repository at this point in the history
  • Loading branch information
cazzerson committed Nov 4, 2016
1 parent 0b75fce commit 3d7035e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/generators/lentil/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def randomize_tests

desc 'precompile additional assets'
def precompile_assets
append_to_file "config/initializers/assets.rb", "Rails.application.config.assets.precompile += %w( *.js ^[^_]*.css *.css.erb lentil/iframe.js lentil/iframe.css addanimatedimages.js animatedimages/css/style.css )\n"
append_to_file "config/initializers/assets.rb", "Rails.application.config.assets.precompile += %w( *.js ^[^_]*.css *.css.erb lentil/iframe.js lentil/iframe.css addanimatedimages.js )\n"
end

desc 'do not enforce available locales'
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/lentil/upgrade_v1_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def randomize_tests
desc "Update precompilation paths"
def update_precompilation_paths
gsub_file "config/application.rb", /^.*Rails.application.config.assets.precompile.*$/, ""
append_to_file "config/initializers/assets.rb", "Rails.application.config.assets.precompile += %w( *.js ^[^_]*.css *.css.erb lentil/iframe.js lentil/iframe.css addanimatedimages.js animatedimages/css/style.css )\n"
append_to_file "config/initializers/assets.rb", "Rails.application.config.assets.precompile += %w( *.js ^[^_]*.css *.css.erb lentil/iframe.js lentil/iframe.css addanimatedimages.js )\n"
end

desc 'insert routes'
Expand Down

0 comments on commit 3d7035e

Please sign in to comment.