Sha256: a8a3174cf3dea5cbfd2658c2e8cb998deb60e60e630b394aa92a08b667462251

Contents?: true

Size: 555 Bytes

Versions: 3

Compression:

Stored size: 555 Bytes

Contents

require 'rails/generators/active_record'

class Doorkeeper::InstallGenerator < Rails::Generators::Base
  include Rails::Generators::Migration
  source_root File.expand_path('../templates', __FILE__)

  def install
    migration_template 'migration.rb', 'db/migrate/create_doorkeeper_tables.rb'
    template "initializer.rb", "config/initializers/doorkeeper.rb"
    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

3 entries across 3 versions & 1 rubygems

Version Path
doorkeeper-0.2.0 lib/generators/doorkeeper/install_generator.rb
doorkeeper-0.1.1 lib/generators/doorkeeper/install_generator.rb
doorkeeper-0.1.0 lib/generators/doorkeeper/install_generator.rb