Sorry if this is a duplicate post, but Google G. is having issues
I have the following named scope in a Rails 3.0.5 model:
where(‘NOT complete AND requested_start_date < ?’,
and I’d like to have a named scope that reuses the :past_due scope to
return a count of matching records. It’s easy to do in the controller,
but I can’t seem to find the right incantation to create
a :past_due_count scope in the model.
What is the right way to do this?