I have a model for which I have provided a customer finder method, 'find_one_by_date(params)', where params is a hash. This method always returns one or no record from the DB.
I would like to define an association, has_one, from another model to this one, passing the params hash and using the custom finder that I have written. It seems to me as if this is not possible from my reading of the api. Before I try and roll my own solution to this I would like to know if it is, in fact, possible to do what I want through the has_one association in AR; and, if so, how is it done? --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

