Class: Doorkeeper::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#installObject


6
7
8
9
10
11
# File 'lib/generators/doorkeeper/install_generator.rb', line 6

def install
  template 'initializer.rb', 'config/initializers/doorkeeper.rb'
  copy_file File.expand_path('../../../../config/locales/en.yml', __FILE__), 'config/locales/doorkeeper.en.yml'
  route 'use_doorkeeper'
  readme 'README'
end