Only one "initialize" method allowed on AR objects?

Wes Gamble <rails-mailing-list@...> writes:

Alex Wayne wrote: > You can also use super > > def initialize(foo, *args) > <at> foo = foo > super(*args) > end >

This is what I was doing. If you do this and then attempt to call clone on your AR::Base descendant, it will complain.

Wes

Have you tried something like

  def initialize(*args)      <at> foo = args.shift # i.e. remove and use the first item of args     super(*args)   end