Class: Contactify::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializer_fileObject



7
8
9
10
# File 'lib/generators/contactify/install/install_generator.rb', line 7

def copy_initializer_file
  copy_file "recaptcha.rb", "config/initializers/recaptcha.rb"
  copy_file "contactify.yml", "config/contactify.yml"
end

#copy_migrationsObject



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

def copy_migrations
	rake("contactify:install:migrations")
end