Module: Billfold::User
- Defined in:
- lib/billfold/user.rb
Overview
## Billfold::User
Support for a user class. If you are using ActiveRecord, you probably want ‘Billfold::ActiveRecordUser`, which includes everything in this module.
‘Billfold::Identity` requires that user instances have a `name` attribute.
‘Billfold::ControllerSupport` requires that the user class respond to `:find_by_id`.
Instance Method Summary collapse
-
#merge_into!(other) ⇒ Object
Merge this user into another user, deleting this user and moving its identities to the other.
Instance Method Details
#merge_into!(other) ⇒ Object
Merge this user into another user, deleting this user and moving its identities to the other.
19 20 21 |
# File 'lib/billfold/user.rb', line 19 def merge_into!(other) raise NotImplementedError.new("Classes including Billfold::User MUST redefine instance method merge_into!") end |