Sha256: 11d098e0aeec6a43a38a273a5d76432f139ec6111d9611ee754b7ea201ebd153

Contents?: true

Size: 347 Bytes

Versions: 17

Compression:

Stored size: 347 Bytes

Contents

require 'devise/models'

module Devise
  module Models
    module Oauth2
      extend ActiveSupport::Concern
      included do
        has_many :access_tokens, :class_name => 'Devise::Oauth2::AccessToken', as: :owner
        has_many :authorization_codes, :class_name => 'Devise::Oauth2::AuthorizationCode', as: :owner
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
devise_oauth2_rails4-2.1.8 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-2.1.7 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-2.1.6 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-2.1.5 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-2.1.4 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-2.1.3 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-2.0.3 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-2.1.0 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-2.0.2 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-2.0.1 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-2.0.0 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-1.1.8 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-1.1.7 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-1.1.6 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-1.1.5 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-1.1.4 lib/devise/oauth2/models/oauth2_providable.rb
devise_oauth2_rails4-1.1.3 lib/devise/oauth2/models/oauth2_providable.rb