search for: has_sold

Displaying 1 result from an estimated 1 matches for "has_sold".

Did you mean: has_fold
2014 Mar 02
0
User model inherit Seller model or vice versa?
So all Sellers are Users, Users can be Sellers in this marketplace model. Should Seller be on top and inherit to User or the other way round? I found it weird when doing a Session login, I've to call *Seller.has_sold?* even though all they are all Users to begin with, but I can't call *User.has_sold?* since the method is not in User.rb. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving ema...