Class: PunditLogger::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



8
9
10
11
12
13
14
# File 'lib/generators/pundit_logger/install_generator.rb', line 8

def copy_initializer
  template 'default_initializer.rb',
    'config/initializers/pundit_logger.rb'

  puts "View the created file for configuration options.\n" \
       "Now you know what Pundit\'s up to!"
end