Sha256: 2075a73fc45c8037ad5a61deaaa2bf64b744241b4424004da0b0a9680827cb59

Contents?: true

Size: 662 Bytes

Versions: 15

Compression:

Stored size: 662 Bytes

Contents

# frozen_string_literal: true

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

15 entries across 15 versions & 2 rubygems

Version Path
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/devise-4.8.0/lib/devise/models/omniauthable.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/devise-4.8.0/lib/devise/models/omniauthable.rb
devise-4.8.0 lib/devise/models/omniauthable.rb
devise-4.7.3 lib/devise/models/omniauthable.rb
devise-4.7.2 lib/devise/models/omniauthable.rb
devise-4.7.1 lib/devise/models/omniauthable.rb
devise-4.7.0 lib/devise/models/omniauthable.rb
devise-4.6.2 lib/devise/models/omniauthable.rb
devise-4.6.1 lib/devise/models/omniauthable.rb
devise-4.6.0 lib/devise/models/omniauthable.rb
devise-4.5.0 lib/devise/models/omniauthable.rb
devise-4.4.3 lib/devise/models/omniauthable.rb
devise-4.4.2 lib/devise/models/omniauthable.rb
devise-4.4.1 lib/devise/models/omniauthable.rb
devise-4.4.0 lib/devise/models/omniauthable.rb