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