Module: Devise::Models::RpxConnectable::ClassMethods
- Defined in:
- lib/devise_rpx_connectable/model.rb
Instance Method Summary collapse
-
#authenticate_with_rpx(attributes = {}) ⇒ Object
Authenticate a user based on RPX Identifier.
-
#rpx_auto_create_account? ⇒ Boolean
Alias don’t work for some reason, so…a more Ruby-ish alias for
rpx_auto_create_account
.
Instance Method Details
#authenticate_with_rpx(attributes = {}) ⇒ Object
Authenticate a user based on RPX Identifier.
145 146 147 148 149 |
# File 'lib/devise_rpx_connectable/model.rb', line 145 def authenticate_with_rpx(attributes = {}) if attributes[:identifier].present? self.find_for_rpx(attributes[:identifier], attributes[:request_keys]) end end |
#rpx_auto_create_account? ⇒ Boolean
Alias don’t work for some reason, so…a more Ruby-ish alias for rpx_auto_create_account
.
139 140 141 |
# File 'lib/devise_rpx_connectable/model.rb', line 139 def rpx_auto_create_account? self.rpx_auto_create_account end |