Class: DryCrudGenerator
- Inherits:
-
DryCrudGeneratorBase
- Object
- Rails::Generators::Base
- DryCrudGeneratorBase
- DryCrudGenerator
- Defined in:
- lib/generators/dry_crud/dry_crud_generator.rb
Overview
Copies all dry_crud files to the rails application.
Instance Method Summary collapse
-
#install_dry_crud ⇒ Object
copy everything to application.
Methods inherited from DryCrudGeneratorBase
gem_root, source_paths, template_root
Instance Method Details
#install_dry_crud ⇒ Object
copy everything to application
15 16 17 18 19 20 21 22 23 |
# File 'lib/generators/dry_crud/dry_crud_generator.rb', line 15 def install_dry_crud copy_files(all_template_files) Dir.chdir(self.class.template_root) do copy_crud_test_model end readme 'INSTALL' end |