Sha256: 9addc81c09a8aaf240fba105cbe8c49aa5ded53829c7736e1c22c88cdfcf4313

Contents?: true

Size: 498 Bytes

Versions: 4

Compression:

Stored size: 498 Bytes

Contents

module Adauth
    module Generators
        
        # Generates a sample config file
        class ConfigGenerator < Rails::Generators::Base
            source_root File.expand_path('../templates', __FILE__)
            
            # Generates a sample config file
            #
            # Called by running:
            #    rails g adauth:config
            def generate_config
                template "config.rb.erb", "config/initializers/adauth.rb"
            end
        end
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adauth-1.2.1 lib/generators/adauth/config/config_generator.rb
adauth-1.2.0 lib/generators/adauth/config/config_generator.rb
adauth-1.1.0 lib/generators/adauth/config/config_generator.rb
adauth-1.0.1 lib/generators/adauth/config/config_generator.rb