Ruby on Rails Sunday, March 2, 2014

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 emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7388fdfd-4c78-43bc-9685-26794733a8c2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment