Class: DemoMode::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#installObject



11
12
13
14
15
# File 'lib/generators/demo_mode/install_generator.rb', line 11

def install
  template 'initializer.rb', 'config/initializers/demo_mode.rb'
  template 'sample_persona.rb', 'config/personas/sample_persona.rb'
  rake 'demo_mode:install:migrations'
end