Common query conditions

Everytime I invoke MyModel.find I need to use the same :conditions.

I don’t want to repeat it always. So, how can I do for an
automatic-addition of a where clause ?

On Wed, 2007-01-03 at 15:22 +0100, Roberto C. wrote:

Everytime I invoke MyModel.find I need to use the same :conditions.

I don’t want to repeat it always. So, how can I do for an
automatic-addition of a where clause ?

Use/Abuse with_scope or have custom finders.

This guys has got quite a few things to say about what you ask: