Sha256: b71e449c4a19dbb22dc9017b5e1ed42d4135c7ba42526626e71e4415c9de4d48

Contents?: true

Size: 410 Bytes

Versions: 7

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

module Doorkeeper
  module OpenidConnect
    module AccessGrant
      def self.prepended(base)
        base.class_eval do
          has_one :openid_request,
            class_name: 'Doorkeeper::OpenidConnect::Request',
            inverse_of: :access_grant,
            dependent: :delete
        end
      end
    end
  end

  AccessGrant.prepend OpenidConnect::AccessGrant
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
doorkeeper-openid_connect-1.8.1 lib/doorkeeper/openid_connect/orm/active_record/access_grant.rb
doorkeeper-openid_connect-1.8.0 lib/doorkeeper/openid_connect/orm/active_record/access_grant.rb
doorkeeper-openid_connect-1.8.0.pre.rc1 lib/doorkeeper/openid_connect/orm/active_record/access_grant.rb
doorkeeper-openid_connect-1.7.5 lib/doorkeeper/openid_connect/orm/active_record/access_grant.rb
doorkeeper-openid_connect-1.7.4 lib/doorkeeper/openid_connect/orm/active_record/access_grant.rb
doorkeeper-openid_connect-1.7.3 lib/doorkeeper/openid_connect/orm/active_record/access_grant.rb
doorkeeper-openid_connect-1.7.2 lib/doorkeeper/openid_connect/orm/active_record/access_grant.rb