On Wed, 2007-01-03 at 15:22 +0100, Roberto Casadei
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:
http://errtheblog.com/post/41
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---