You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.
Same issue, the url you gave is not working, please tell me how did you solve it, it seems that the issue is when you use class_name option in the relationship declaration
I have this in my User model
has_many :evaluations, class_name: "RSEvaluation", as: :source
has_many :questions
has_many :answers
has_reputation :karma,
:source => [
{ :reputation => :questioning_skill },
{ :reputation => :answering_skill } ]
has_reputation :questioning_skill,
:source => { :reputation => :votes, :of => :questions }
has_reputation :answering_skill,
:source => { :reputation => :votes, :of => :answers }
But whenever I user.reputation_for(:karma) I always get 0.0.
No problem with user.reputation_for(:questioning_skill) because I get the correct value.
The text was updated successfully, but these errors were encountered: