Sha256: eddedbc54098d306406771b58dde1c2d740da04fb5d6d5fc5bbcbae8ec3f3b20
Contents?: true
Size: 383 Bytes
Versions: 30
Compression:
Stored size: 383 Bytes
Contents
# frozen_string_literal: true module Doorkeeper module Models module Ownership extend ActiveSupport::Concern included do belongs_to :owner, polymorphic: true, optional: true validates :owner, presence: true, if: :validate_owner? end def validate_owner? Doorkeeper.config.confirm_application_owner? end end end end
Version data entries
30 entries across 30 versions & 1 rubygems