Sha256: a4a31cd9503bc4ce03138cb12f0b9bb353e1716eabd0562ace485dc2d4f4c60a

Contents?: true

Size: 543 Bytes

Versions: 8

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true

module Doorkeeper
  module DeviceAuthorizationGrant
    # Rails generator to install DeviceAuthorizationGrant initializer and routes.
    class InstallGenerator < ::Rails::Generators::Base
      source_root File.expand_path('./templates', __dir__)
      desc 'Installs Doorkeeper DeviceAuthorizationGrant.'

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
doorkeeper-device_authorization_grant-1.0.3 lib/generators/doorkeeper/device_authorization_grant/install_generator.rb
doorkeeper-device_authorization_grant-1.0.2 lib/generators/doorkeeper/device_authorization_grant/install_generator.rb
doorkeeper-device_authorization_grant-1.0.1 lib/generators/doorkeeper/device_authorization_grant/install_generator.rb
doorkeeper-device_authorization_grant-1.0.0 lib/generators/doorkeeper/device_authorization_grant/install_generator.rb
doorkeeper-device_authorization_grant-0.2.1 lib/generators/doorkeeper/device_authorization_grant/install_generator.rb
doorkeeper-device_authorization_grant-0.2.0 lib/generators/doorkeeper/device_authorization_grant/install_generator.rb
doorkeeper-device_authorization_grant-0.1.1 lib/generators/doorkeeper/device_authorization_grant/install_generator.rb
doorkeeper-device_authorization_grant-0.1.0 lib/generators/doorkeeper/device_authorization_grant/install_generator.rb