Class: Spree::AuthenticationMethod
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Spree::AuthenticationMethod
- Defined in:
- app/models/spree/authentication_method.rb
Class Method Summary collapse
Class Method Details
.active_authentication_methods? ⇒ Boolean
4 5 6 7 8 9 10 11 12 |
# File 'app/models/spree/authentication_method.rb', line 4 def self.active_authentication_methods? found = false where(:environment => ::Rails.env).each do |method| if method.active found = true end end return found end |