Sha256: 4a89cc524d6a4a0f028bf96d78f53f539a91635cf20c90de5c3e343053c9719f

Contents?: true

Size: 280 Bytes

Versions: 2

Compression:

Stored size: 280 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
doorkeeper-sequel-2.0.0 lib/doorkeeper-sequel/mixins/concerns/ownership.rb
doorkeeper-sequel-1.5.0 lib/doorkeeper-sequel/mixins/concerns/ownership.rb