Class: CarrierwaveBackgrounder::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_configObject



6
7
8
# File 'lib/generators/carrierwave_backgrounder/install_generator.rb', line 6

def copy_config
  template "config/initializers/carrierwave_backgrounder.rb"
end

#info_configObject



10
11
12
13
14
15
16
17
# File 'lib/generators/carrierwave_backgrounder/install_generator.rb', line 10

def info_config
  puts <<-EOF

  \e[33mBy default :active_job is used as the backend for carrierwave_backgrounder with :carrierwave as the queue name.
  To change this, edit config/initializers/carrierwave_backgrounder.rb.\e[0m

  EOF
end