Class: CaseForm::Generators::UninstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- CaseForm::Generators::UninstallGenerator
- Defined in:
- lib/generators/case_form/uninstall_generator.rb
Instance Method Summary collapse
- #delete_config ⇒ Object
- #delete_javascripts ⇒ Object
- #delete_locales ⇒ Object
- #delete_stylesheets ⇒ Object
Instance Method Details
#delete_config ⇒ Object
10 11 12 |
# File 'lib/generators/case_form/uninstall_generator.rb', line 10 def delete_config remove_file "config/initializers/case_form.rb" if .config? end |
#delete_javascripts ⇒ Object
21 22 23 |
# File 'lib/generators/case_form/uninstall_generator.rb', line 21 def delete_javascripts remove_file "public/javascripts/case_form.js" if .javascripts? end |
#delete_locales ⇒ Object
25 26 27 |
# File 'lib/generators/case_form/uninstall_generator.rb', line 25 def delete_locales remove_file "config/locales/case_form" if .locales? end |
#delete_stylesheets ⇒ Object
14 15 16 17 18 19 |
# File 'lib/generators/case_form/uninstall_generator.rb', line 14 def delete_stylesheets if .stylesheets? remove_file "public/stylesheets/case_form.css" remove_file "public/stylesheets/case_form_changes.css" end end |