Sha256: 973bbac3427fd7be11ffaf16d84d0e80b7d2e48144d3a5fd9bb70bf17cddec6f

Contents?: true

Size: 393 Bytes

Versions: 5

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

namespace :doorkeeper do
  task setup: :environment do
    # Dirty hack to manually initialize AR because of lazy auto-loading,
    # in other case we'll see NameError: uninitialized constant Doorkeeper::AccessToken
    if Doorkeeper.config.orm == :active_record && defined?(::ActiveRecord::Base)
      Object.const_get("::ActiveRecord::Base")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
doorkeeper-5.5.4 lib/doorkeeper/rake/setup.rake
doorkeeper-5.5.3 lib/doorkeeper/rake/setup.rake
doorkeeper-5.5.2 lib/doorkeeper/rake/setup.rake
doorkeeper-5.5.1 lib/doorkeeper/rake/setup.rake
doorkeeper-5.5.0 lib/doorkeeper/rake/setup.rake