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