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