Sha256: de23cebc58b2adac0a1b0ef839092cdcd54791adefb6621af3fc093d117935f2

Contents?: true

Size: 359 Bytes

Versions: 6

Compression:

Stored size: 359 Bytes

Contents

module Doorkeeper
  module Orm
    module Sequel
      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
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
doorkeeper-sequel-1.4.0 lib/doorkeeper/orm/sequel/models/concerns/ownership.rb
doorkeeper-sequel-1.3.1 lib/doorkeeper/orm/sequel/models/concerns/ownership.rb
doorkeeper-sequel-1.3.0 lib/doorkeeper/orm/sequel/models/concerns/ownership.rb
doorkeeper-sequel-1.2.3 lib/doorkeeper/orm/sequel/models/concerns/ownership.rb
doorkeeper-sequel-1.2.2 lib/doorkeeper/orm/sequel/models/concerns/ownership.rb
doorkeeper-sequel-1.2.1 lib/doorkeeper/orm/sequel/models/concerns/ownership.rb