Class: CompositeContent::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
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_migrationsObject



15
16
17
# File 'lib/generators/composite_content/install_generator.rb', line 15

def copy_migrations
  rake 'composite_content:install:migrations'
end

#copy_viewsObject



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