Module: OmniAuth::Identity::SecurePassword
- Included in:
- Models::ActiveRecord
- Defined in:
- lib/omniauth/identity/secure_password.rb
Overview
This is taken directly from Rails 3.1 code and is used if the version of ActiveModel that’s being used does not include SecurePassword. The only difference is that instead of using ActiveSupport::Concern, it checks to see if there is already a has_secure_password method.
Defined Under Namespace
Modules: ClassMethods, InstanceMethodsOnActivation
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
11 12 13 14 15 |
# File 'lib/omniauth/identity/secure_password.rb', line 11 def self.included(base) unless base.respond_to?(:has_secure_password) base.extend ClassMethods end end |