Class: CaseForm::Generators::UninstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/case_form/uninstall_generator.rb

Instance Method Summary collapse

Instance Method Details

#delete_configObject



10
11
12
# File 'lib/generators/case_form/uninstall_generator.rb', line 10

def delete_config
  remove_file "config/initializers/case_form.rb" if options.config?
end

#delete_javascriptsObject



21
22
23
# File 'lib/generators/case_form/uninstall_generator.rb', line 21

def delete_javascripts
  remove_file "public/javascripts/case_form.js" if options.javascripts?
end

#delete_localesObject



25
26
27
# File 'lib/generators/case_form/uninstall_generator.rb', line 25

def delete_locales
  remove_file "config/locales/case_form" if options.locales?
end

#delete_stylesheetsObject



14
15
16
17
18
19
# File 'lib/generators/case_form/uninstall_generator.rb', line 14

def delete_stylesheets
  if options.stylesheets?
    remove_file "public/stylesheets/case_form.css"
    remove_file "public/stylesheets/case_form_changes.css"
  end
end