I have a model called,article which belongs_to user
so in article.rb
and in user.rb
has_many :posts, :dependent => :nullify, :class_name => ‘Article’
so now @user.posts is giving the posts of the user
Now like,without using any named_scope,
i would want @user.posts to give out only the posts which were published
before 10 days.
I know i can use a named_Scope
But i want to directly use @user.posts alone to get the above result.
Is it possible to do this??
Thanks In Advance,