-
Notifications
You must be signed in to change notification settings - Fork 71
Custom User Model
raw1z edited this page Mar 6, 2012
·
3 revisions
Since version 0.8.0, amistad can be used with custom user models. For example, if you are using a model named Profile, create an initializer with the following code:
Amistad.configure do |config|
config.friend_model = 'Profile'
end
Then activate amistad in you model:
class Profile < ActiveRecord::Base
include Amistad::FriendModel
end