Sha256: 5eeddf4d35413c34376a5af8f6d836c7115c1e82a6b34b40f6b08649f2e4a7de
Contents?: true
Size: 390 Bytes
Versions: 13
Compression:
Stored size: 390 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.configuration.confirm_application_owner? end end end end
Version data entries
13 entries across 13 versions & 1 rubygems