Class: Spree::AuthenticationMethod
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Spree::AuthenticationMethod
- Defined in:
- app/models/spree/authentication_method.rb
Class Method Summary collapse
Class Method Details
.active_authentication_methods? ⇒ Boolean
10 11 12 |
# File 'app/models/spree/authentication_method.rb', line 10 def self.active_authentication_methods? where(environment: ::Rails.env, active: true).exists? end |
.provider_options ⇒ Object
4 5 6 |
# File 'app/models/spree/authentication_method.rb', line 4 def self. SolidusSocial.configured_providers.map { |provider_name| [provider_name.split("_").first.camelize, provider_name] } end |