Class: Adauth::Generators::ConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/adauth/config/config_generator.rb

Overview

Generates a sample config file

Instance Method Summary collapse

Instance Method Details

#generate_configObject

Generates a sample config file

Called by running:

rails g adauth:config

12
13
14
# File 'lib/generators/adauth/config/config_generator.rb', line 12

def generate_config
    template "config.rb.erb", "config/initializers/adauth.rb"
end