mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
23 lines
No EOL
573 B
Ruby
23 lines
No EOL
573 B
Ruby
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 avaialble to this model. It expects an array:
|
|
#
|
|
# devise_for :database_authenticatable, :omniauthable, :omniauth_providers => [:twitter]
|
|
#
|
|
module Omniauthable
|
|
extend ActiveSupport::Concern
|
|
|
|
module ClassMethods
|
|
Devise::Models.config(self, :omniauth_providers)
|
|
end
|
|
end
|
|
end
|
|
end |