lib/doorkeeper/orm/mongoid5.rb in doorkeeper-mongodb-5.0.0 vs lib/doorkeeper/orm/mongoid5.rb in doorkeeper-mongodb-5.2.0

- old
+ new

@@ -1,23 +1,25 @@ -require 'active_support/lazy_load_hooks' +# frozen_string_literal: true +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' + 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' + require "doorkeeper/orm/concerns/mongoid/ownership" - Doorkeeper::Application.send :include, Doorkeeper::Orm::Concerns::Mongoid::Ownership + Doorkeeper::Application.include Doorkeeper::Orm::Concerns::Mongoid::Ownership end end def self.check_requirements!(_config); end