Module: Doorkeeper::Orm::ActiveRecord

Defined in:
lib/doorkeeper/orm/active_record.rb,
lib/doorkeeper/orm/active_record/stale_records_cleaner.rb

Defined Under Namespace

Modules: Mixins Classes: StaleRecordsCleaner

Class Method Summary collapse

Class Method Details

.run_hooksObject

Kept as a no-op so ‘Doorkeeper.run_orm_hooks` (and any plugin that checks `respond_to?(:run_hooks)`) stays quiet. The model concerns that used to be wired up here are now included from each Mixin’s ‘included` block, which runs at parent-class autoload time — well after `Doorkeeper.configure` has applied user settings, and without touching `ActiveSupport.on_load(:active_record)` (whose re-entrant firing during `ApplicationRecord` autoload caused #1828).



38
# File 'lib/doorkeeper/orm/active_record.rb', line 38

def self.run_hooks; end