Class: Alchemy::Upgrader::SevenPointFour

Inherits:
Alchemy::Upgrader show all
Includes:
Thor::Actions, Thor::Base
Defined in:
lib/alchemy/upgrader/seven_point_four.rb

Constant Summary

Constants included from Shell

Shell::COLORS

Class Method Summary collapse

Methods inherited from Alchemy::Upgrader

copy_new_config_file

Methods included from Shell

#add_todo, #desc, #display_todos, #log, silence!, silenced?, #todo, #todos, verbose!

Class Method Details

.update_custom_css_configObject



12
13
14
15
16
17
# File 'lib/alchemy/upgrader/seven_point_four.rb', line 12

def update_custom_css_config
  if File.exist? "app/assets/config/manifest.js"
    log "Removing alchemy/admin/custom.css from assets config file."
    task.gsub_file "app/assets/config/manifest.js", %r{//= link alchemy/admin/custom.css\n}, ""
  end
end