On Oct 26, 5:55 pm, "Michael Koziarski" <[EMAIL PROTECTED]> wrote:
> > I'm struggling a bit with the best way to override the private create
> > and update methods. I have an adapter for a non sql backend and I
> > need to either override create and update, or alternatively maybe
> > override create_or_update and have it call replacements for create and
> > update. I would prefer the approach that modifies as little as
> > possible of activerecord.
>
> > Suggestions?
>
> Given all the other things we do with SQL like .find(:all,
> :include=>...) you're going to be changing a lot more than that.
Actually I want to keep most of the semantics of activerecord, I just
don't want to generate sql. With only overriding about 6 methods in
activerecord::base I have everything working except for some
associations. Right now what I'm doing is for our prototype, later
I'll probably write it clean from scratch as you suggest.
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---