Class: EditableContent::Generators::InstallGenerator

Inherits:
ActiveRecord::Generators::Base
  • Object
show all
Defined in:
lib/generators/editable_content/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_migrationsObject



11
12
13
14
# File 'lib/generators/editable_content/install/install_generator.rb', line 11

def create_migrations
  migration_template 'create_editable_content_editables.rb', 'db/migrate/create_editable_content_editables.rb'
  migration_template 'create_mercury_images.rb', 'db/migrate/create_mercury_images.rb'
end

#install_authenticationObject



16
17
18
# File 'lib/generators/editable_content/install/install_generator.rb', line 16

def install_authentication
  copy_file 'lib/mercury/authentication.rb'
end