Module: Negroni::Models::Omniauthable

Extended by:
ActiveSupport::Concern
Defined in:
lib/negroni/models/omniauthable.rb

Overview

Adds OmniAuth support to your model.

## Options

Omniauthable adds the following options to negroni:

* `omniauth_providers`: Which providers are available to this model.
        It expects an array.

Examples:

negroni :authenticable, :omniauthable, omniauth_providers: [:twitter]

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.required_fields(_klass = nil) ⇒ Object

Required fields for this module (none)



23
24
25
# File 'lib/negroni/models/omniauthable.rb', line 23

def self.required_fields(_klass = nil)
  []
end