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.
133 134 135 136 137 |
# File 'lib/devise_rpx_connectable/model.rb', line 133 def authenticate_with_rpx(attributes = {}) if attributes[:identifier].present? self.find_for_rpx(attributes[:identifier]) 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
.
127 128 129 |
# File 'lib/devise_rpx_connectable/model.rb', line 127 def rpx_auto_create_account? self.rpx_auto_create_account end |