Topic: extended active record associations

In my model I currently have

class Project < ActiveRecord::Base
  has_many :milestones

Now I need to do something funky that doesn't something like this

class Project < ActiveRecord::Base
  
   def milestones_augment
      external_milestones  = (get external milestones)
      milestones = self.milestones
      milestones << external_milestones
      return milestones
   end

Basically I am doing something different where I have to grab some external data and add it to the initial milestones association.

The thing is, I would like to keep the parameters (:order, :conditions, etc), passed in as usual.

Any advice how to do this?
thanks!

Re: extended active record associations

I guess what you are asking is how to define the get external milestones method?
Could you be clearer on where you are getting your external milestomes from and how you intend to use the data returned

What you want and what you need are too often not the same thing!
When your head is hurting from trying to solve a problem, stop standing on it. When you are the right way up you will see the problem differently and you just might find the solution.
(Quote by me 15th July 2009)