Class: Authkit::InstallGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



10
11
12
# File 'lib/generators/authkit/install_generator.rb', line 10

def self.source_root
  @source_root ||= File.join(File.dirname(__FILE__), 'templates')
end

Instance Method Details

#generate_authkitObject



36
37
38
39
40
41
# File 'lib/generators/authkit/install_generator.rb', line 36

def generate_authkit
  generate_migrations
  install_templates
  install_routes
  install_gems
end