Class: RailsAdmin::UninstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RailsAdmin::UninstallGenerator
- Extended by:
- Generators::Utils::ClassMethods
- Includes:
- Rails::Generators::Migration, Generators::Utils::InstanceMethods
- Defined in:
- lib/generators/rails_admin/uninstall_generator.rb
Instance Method Summary collapse
Methods included from Generators::Utils::ClassMethods
Methods included from Generators::Utils::InstanceMethods
Instance Method Details
#uninstall ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/generators/rails_admin/uninstall_generator.rb', line 13 def uninstall display "Why you leaving so soon? :(" migration_template 'drop.rb', 'db/migrate/drop_rails_admin_histories_table.rb' remove_file 'config/initializers/rails_admin.rb' remove_file 'config/initializers/rails_admin.rb.example' gsub_file "config/routes.rb", /mount RailsAdmin::Engine => \'\/.+\', :as => \'rails_admin\'/, '' display "Done! Devise has been left untouched." end |