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 ?
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:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs