Class: Doorkeeper::DeviceAuthorizationGrant::InstallGenerator

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

Overview

Rails generator to install DeviceAuthorizationGrant initializer and routes.

Instance Method Summary collapse

Instance Method Details

#installObject



10
11
12
13
# File 'lib/generators/doorkeeper/device_authorization_grant/install_generator.rb', line 10

def install
  template('initializer.rb', 'config/initializers/doorkeeper_device_authorization_grant.rb')
  route('use_doorkeeper_device_authorization_grant')
end