Module: Billfold::Identity
- Defined in:
- lib/billfold/identity.rb
Overview
Billfold::Identity
Support for an identity class. If you are using ActiveRecord, you
probably want Billfold::ActiveRecordIdentity, which includes everything
in this module.
Requires the following attributes
user-- the owningBillfold::Userinstance; requiredprovider-- the OmniAuth provider name (e.g. "twitter"); requiredvalue-- the unique identifier (within the scope ofprovider) of the identity (e.g. "my_twitter_handle"); requireddata-- additional information passed in from OmniAuth under the"user_info"key
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
20 21 22 23 |
# File 'lib/billfold/identity.rb', line 20 def self.included(base) base.extend ClassMethods base.send(:include, InstanceMethods) end |