Class: Delayed::Web::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#installObject



7
8
9
10
11
12
13
# File 'lib/generators/delayed/web/install_generator.rb', line 7

def install
  template 'initializer.rb', 'config/initializers/delayed_web.rb'
  route 'mount Delayed::Web::Engine, at: \'/jobs\''
  if assets?
    application "config.assets.precompile << 'delayed/web/application.css'"
  end
end