Sha256: 3dd84a116d6f959acdfc06820af656ad9fc265096bbc207ea83d0c408558e0e7

Contents?: true

Size: 554 Bytes

Versions: 3

Compression:

Stored size: 554 Bytes

Contents

module Doorkeeper
  module Sequel
    class ApplicationOwnerGenerator < ::Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)

      desc 'Provide support for client application ownership.'

      def install
        copy_file 'add_owner_to_application.rb', migration_file_name
      end

      private

      def migration_file_name
        "db/migrate/#{migration_timestamp}_add_owner_to_application.rb"
      end

      def migration_timestamp
        Time.current.strftime('%Y%m%d%H%M%S')
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
doorkeeper-sequel-1.2.3 lib/generators/doorkeeper/sequel/application_owner_generator.rb
doorkeeper-sequel-1.2.2 lib/generators/doorkeeper/sequel/application_owner_generator.rb
doorkeeper-sequel-1.2.1 lib/generators/doorkeeper/sequel/application_owner_generator.rb