Sha256: 354d24661cb2d9c7418d36d719e03de66f98fb417b28c63f1d98a945b1ad5f9d

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

require 'doorkeeper-mongodb/version'

require 'doorkeeper'

require 'doorkeeper-mongodb/compatible'
require 'doorkeeper-mongodb/shared/scopes'

require 'doorkeeper-mongodb/mixins/mongo_mapper/access_grant_mixin'
require 'doorkeeper-mongodb/mixins/mongo_mapper/access_token_mixin'
require 'doorkeeper-mongodb/mixins/mongo_mapper/application_mixin'

require 'doorkeeper/orm/mongo_mapper'

require 'doorkeeper-mongodb/mixins/mongoid/access_grant_mixin'
require 'doorkeeper-mongodb/mixins/mongoid/access_token_mixin'
require 'doorkeeper-mongodb/mixins/mongoid/application_mixin'

# Maybe we need to squash this into one? With backward compatibility
require 'doorkeeper/orm/mongoid4'
require 'doorkeeper/orm/mongoid5'
require 'doorkeeper/orm/mongoid6'
require 'doorkeeper/orm/mongoid7'

module DoorkeeperMongodb
  def load_locales
    locales_dir = File.expand_path('../../config/locales', __FILE__)
    locales = Dir[File.join(locales_dir, '*.yml')]

    I18n.load_path |= locales
  end

  module_function :load_locales
end

DoorkeeperMongodb.load_locales

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doorkeeper-mongodb-4.0.1 lib/doorkeeper-mongodb.rb
doorkeeper-mongodb-4.0.0 lib/doorkeeper-mongodb.rb