Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amistad-0.9.2/lib/amistad/friendship_model.rb:9:in `included' #37

Open
railsfactory-deepikakg opened this issue Jan 8, 2013 · 0 comments

Comments

@railsfactory-deepikakg
Copy link

I'm using rails 3.2.5 with activerecord 3.2.5, and ruby 1.9.3
i tried to implement amistad gem for maintaining friendship within my application.
I have added "include Amistad::FriendshipModel" in my user model. but i don't see any methods included in mys user model. I have to know if there is any problem for amistad with activerecord 3.2.5? whether this will work or not with this version of activerecord.
It throws error like:

RuntimeError: Amistad only supports ActiveRecord and Mongoid
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/amistad-0.9.2/lib/amistad/friendship_model.rb:9:in `included'

When i try with my console. any methods from amistad like invite, approve are throwing errors as undefined method "invite"

Please help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant