Sha256: dd1fc3853ed52f658a9617c4d0e8b7d3c93adaf8941cae8c01eb9be4e7a9cdbb

Contents?: true

Size: 311 Bytes

Versions: 4

Compression:

Stored size: 311 Bytes

Contents

# frozen_string_literal: true

module DoorkeeperSequel
  module Ownership
    extend ActiveSupport::Concern

    included do
      plugin :polymorphic

      many_to_one :owner, polymorphic: true

      def validate_owner?
        Doorkeeper.configuration.confirm_application_owner?
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
doorkeeper-sequel-2.4.0 lib/doorkeeper-sequel/mixins/concerns/ownership.rb
doorkeeper-sequel-2.3.0 lib/doorkeeper-sequel/mixins/concerns/ownership.rb
doorkeeper-sequel-2.2.0 lib/doorkeeper-sequel/mixins/concerns/ownership.rb
doorkeeper-sequel-2.1.0 lib/doorkeeper-sequel/mixins/concerns/ownership.rb