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
.initialize_configured_associations ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/doorkeeper/orm/active_record.rb', line 35 def self.initialize_configured_associations if Doorkeeper.config.enable_application_owner? Doorkeeper.config.application_model.include ::Doorkeeper::Models::Ownership end Doorkeeper.config.access_grant_model.include ::Doorkeeper::Models::PolymorphicResourceOwner::ForAccessGrant Doorkeeper.config.access_token_model.include ::Doorkeeper::Models::PolymorphicResourceOwner::ForAccessToken end |
.run_hooks ⇒ Object
31 32 33 |
# File 'lib/doorkeeper/orm/active_record.rb', line 31 def self.run_hooks initialize_configured_associations end |