Class: CompositeContent::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- CompositeContent::Generators::InstallGenerator
- Defined in:
- lib/generators/composite_content/install_generator.rb
Overview
Generator to copy CompositeContent views into an application.
Instance Method Summary collapse
Instance Method Details
#copy_migrations ⇒ Object
15 16 17 |
# File 'lib/generators/composite_content/install_generator.rb', line 15 def copy_migrations rake 'composite_content:install:migrations' end |
#copy_views ⇒ Object
11 12 13 |
# File 'lib/generators/composite_content/install_generator.rb', line 11 def copy_views directory File.join(self.class.source_root), 'app/views/composite_content' end |