Class: RedisCaptcha::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



10
11
12
# File 'lib/generators/install_generator.rb', line 10

def copy_initializer
  copy_file "redis_captcha.rb", "config/initializers/redis_captcha.rb"
end

#show_readmeObject



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

def show_readme
    readme "README"
end