for example a user "A" sent a friend request to user "B" and this relation
is maintained by a ActiveRel Model named 'FriendWith',and in this class
there is a property called 'accepted' which is by default false. now if
user B accepts the request that will be become true.
I was actually trying to something like this. but its not working.
class User
has_many :friends, rel_class: FriendWith, model _class: User
end
class FriendWith
property :accepted, Boolean, default: false
end
@friends = @user.friends(:u, :f).where('f.accepted = true')
can anyone help me ? I want answer in ruby code.
i am using this gem https://github.com/neo4jrb/neo4j
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.