Sha256: 48df2bd057ca63332fad630020c73e009fc0e7a49830f67984fe453b6cde72f3

Contents?: true

Size: 655 Bytes

Versions: 42

Compression:

Stored size: 655 Bytes

Contents

# frozen_string_literal: true

require "rails/generators"
require "rails/generators/active_record"

module Doorkeeper
  # Setup doorkeeper into Rails application: locales, routes, etc.
  #
  class InstallGenerator < ::Rails::Generators::Base
    include ::Rails::Generators::Migration
    source_root File.expand_path("templates", __dir__)
    desc "Installs Doorkeeper."

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

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
doorkeeper-5.8.0 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.7.1 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.7.0 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.6.9 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.6.8 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.6.7 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.6.6 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.6.5 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.6.4 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.6.3 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.6.2 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.6.1 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.6.0 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.6.0.rc2 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.6.0.rc1 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.5.4 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.5.3 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.5.2 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.5.1 lib/generators/doorkeeper/install_generator.rb
doorkeeper-5.5.0 lib/generators/doorkeeper/install_generator.rb