Sha256: acc5bb9a677165fb922c768a12a3266aafec2c607c4c0778050e42406381a871

Contents?: true

Size: 1.32 KB

Versions: 1

Compression:

Stored size: 1.32 KB

Contents

require 'doorkeeper-mongodb/version'

require 'doorkeeper'

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

require 'doorkeeper/orm/concerns/mongo_mapper/ownership'
require 'doorkeeper/orm/concerns/mongoid/ownership'

require 'doorkeeper-mongodb/mixins/mongo_mapper/base_mixin'
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/base_mixin'
require 'doorkeeper-mongodb/mixins/mongoid/access_grant_mixin'
require 'doorkeeper-mongodb/mixins/mongoid/access_token_mixin'
require 'doorkeeper-mongodb/mixins/mongoid/application_mixin'
require 'doorkeeper-mongodb/mixins/mongoid/stale_records_cleaner_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

1 entries across 1 versions & 1 rubygems

Version Path
doorkeeper-mongodb-5.0.0 lib/doorkeeper-mongodb.rb