> After trying various options (such as cut-and-paste and refactoring),
> I reluctantly concluded that the simplest way to achieve my goal
> would be to simply replace the SQL portions of ActiveRecord with a
> more general "query" mechanism:

Hey Ernie,

The main problem with a large scale refactoring like this is the havoc
that it brings to people's plugins and other people who make use of
our implementation methods.  It's one of the reasons we can't change
ActiveRecord::Base#quote to something that's less likely to clash.

Perhaps another approach would be to try and refactor the parts of AR
which aren't related to persistence (validation, attributes=, etc.) so
they can simply be 'included' by other persistence mechanisms.

Things like Rick's tableless models,  your own core data,  a refined
active ldap, could really use this.    From there we can plan a way
forward to make it easier to write custom persistence tools.

--
Cheers

Koz
_______________________________________________
Rails-core mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to