Sha256: c3d8726a3f81136008af5ab328aaabe93d8f73bd8eaf71517926b9eb24c252e4

Contents?: true

Size: 634 Bytes

Versions: 27

Compression:

Stored size: 634 Bytes

Contents

require 'devise/omniauth'

module Devise
  module Models
    # Adds OmniAuth support to your model.
    #
    # == Options
    #
    # Oauthable adds the following options to devise_for:
    #
    #   * +omniauth_providers+: Which providers are available to this model. It expects an array:
    #
    #       devise_for :database_authenticatable, :omniauthable, :omniauth_providers => [:twitter]
    #
    module Omniauthable
      extend ActiveSupport::Concern

      def self.required_fields(klass)
        []
      end

      module ClassMethods
        Devise::Models.config(self, :omniauth_providers)
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
devise-3.2.3 lib/devise/models/omniauthable.rb
devise-3.2.2 lib/devise/models/omniauthable.rb
devise-3.2.1 lib/devise/models/omniauthable.rb
devise-3.1.2 lib/devise/models/omniauthable.rb
devise-3.0.4 lib/devise/models/omniauthable.rb
devise-2.2.8 lib/devise/models/omniauthable.rb
devise-3.2.0 lib/devise/models/omniauthable.rb
loyal_devise-2.2.6 lib/devise/models/omniauthable.rb
devise-3.1.1 lib/devise/models/omniauthable.rb
devise-3.1.0 lib/devise/models/omniauthable.rb
devise-2.2.7 lib/devise/models/omniauthable.rb
devise-3.0.3 lib/devise/models/omniauthable.rb
devise-3.1.0.rc2 lib/devise/models/omniauthable.rb
loyal_devise-2.2.5 lib/devise/models/omniauthable.rb
devise-2.2.6 lib/devise/models/omniauthable.rb
devise-3.0.2 lib/devise/models/omniauthable.rb
devise-3.0.1 lib/devise/models/omniauthable.rb
devise-2.2.5 lib/devise/models/omniauthable.rb
loyal_devise-2.1.10 lib/devise/models/omniauthable.rb
loyal_devise-2.1.7 lib/devise/models/omniauthable.rb