Sha256: 27195afef8ec3fafae69628a078976674e0955f5d59c50b8ee1107d56d859d59
Contents?: true
Size: 817 Bytes
Versions: 1
Compression:
Stored size: 817 Bytes
Contents
require 'active_support/lazy_load_hooks' module Doorkeeper module Orm module Mongoid5 def self.initialize_models! lazy_load do require 'doorkeeper/orm/mongoid5/access_grant' require 'doorkeeper/orm/mongoid5/access_token' require 'doorkeeper/orm/mongoid5/application' require 'doorkeeper/orm/mongoid5/stale_records_cleaner' end end def self.initialize_application_owner! lazy_load do require 'doorkeeper/orm/concerns/mongoid/ownership' Doorkeeper::Application.send :include, Doorkeeper::Orm::Concerns::Mongoid::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-mongodb-5.0.0 | lib/doorkeeper/orm/mongoid5.rb |