Sha256: 734a74f137bff62b2e1d74959f580b094639ad0aa42ab093a9bceb91ac9254b1
Contents?: true
Size: 666 Bytes
Versions: 2
Compression:
Stored size: 666 Bytes
Contents
# frozen_string_literal: true require 'kingsman/omniauth' module Kingsman module Models # Adds OmniAuth support to your model. # # == Options # # Oauthable adds the following options to +kingsman+: # # * +omniauth_providers+: Which providers are available to this model. It expects an array: # # kingsman :database_authenticatable, :omniauthable, omniauth_providers: [:twitter] # module Omniauthable extend ActiveSupport::Concern def self.required_fields(klass) [] end module ClassMethods Kingsman::Models.config(self, :omniauth_providers) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kingsman-0.1.1 | lib/kingsman/models/omniauthable.rb |
kingsman-0.1.0 | lib/kingsman/models/omniauthable.rb |