Sha256: 52197dac3f90df1a281eb57066f0136787bee1bacbb21d9517877c4015a437ba
Contents?: true
Size: 759 Bytes
Versions: 2
Compression:
Stored size: 759 Bytes
Contents
require 'active_support/lazy_load_hooks' module Doorkeeper module Orm module Mongoid6 def self.initialize_models! lazy_load do require 'doorkeeper/orm/mongoid6/access_grant' require 'doorkeeper/orm/mongoid6/access_token' require 'doorkeeper/orm/mongoid6/application' end end def self.initialize_application_owner! lazy_load do require 'doorkeeper/models/concerns/ownership' Doorkeeper::Application.send :include, Doorkeeper::Models::Ownership end end def self.check_requirements!(_config); end def self.lazy_load(&block) ActiveSupport.on_load(:mongoid, {}, &block) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-mongodb-4.2.0 | lib/doorkeeper/orm/mongoid6.rb |
doorkeeper-mongodb-4.1.0 | lib/doorkeeper/orm/mongoid6.rb |