Thursday 15 September 2011

ruby on rails - Scope associated models by "created_at" -


I have three models: users, products and ownership One is owned by product_id: integer and a user_id: integer . I want to give my products the scope by created_at DESC .

App / model / product.rb

No comments:

Post a Comment