Sha256: bcbbf4c4904463f2958c64f0d10c6a42933732f36d5f5e2d96f420041b9656da
Contents?: true
Size: 671 Bytes
Versions: 7
Compression:
Stored size: 671 Bytes
Contents
require 'rails/generators/active_record' class Doorkeeper::InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) desc "Installs Doorkeeper." def install migration_template 'migration.rb', 'db/migrate/create_doorkeeper_tables.rb' template "initializer.rb", "config/initializers/doorkeeper.rb" copy_file "../../../../config/locales/en.yml", "config/locales/doorkeeper.en.yml" route "mount Doorkeeper::Engine => '/oauth'" readme "README" end def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end end
Version data entries
7 entries across 7 versions & 1 rubygems