Displaying 1 result from an estimated 1 matches for "buddies_that_dont_accept_you".
2006 Jan 12
0
HABTM with conditional field in relation table
...es a list of all the member''s buddies atm)
josh $ m.buddies_waiting_for_acceptance # should give an array of only
the buddies that I didn''t accept yet
josh $ m.buddies_you_dont_accept # should give an array of buddies of
whom you don''t want to be added as buddy
josh $ m.buddies_that_dont_accept_you # should give an array of buddies
that don''t accept you as buddy
I want to have the following code numbers in the accepted field:
0 - waiting for acceptance
1 - accepted
2 - not accepted
But now how can i realize this? Should I create again HABTM dependencies
using the :conditions key...