Class: UploadcareConfigGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- UploadcareConfigGenerator
- Defined in:
- lib/generators/uploadcare_config_generator.rb
Overview
A generator that copies the config template to config directory
Instance Method Summary collapse
Instance Method Details
#create_config_file ⇒ Object
9 10 11 |
# File 'lib/generators/uploadcare_config_generator.rb', line 9 def create_config_file copy_file 'uploadcare_config_template.erb', 'config/initializers/uploadcare.rb' end |