On Miércoles, 29 de Septiembre de 2010 23:22:52 davout escribió:
> On 29 sep, 16:34, "nicolae.claudius" <[email protected]>
>
> wrote:
> > Note worthy:
> >
> > vhochstein's fork is rails3 compatible and supports bot prototype and
> > jquery
>
> Yep, that was implied by "using volker's fork" =)
>
> > If anyone is kind to consider the following features in rails3 branch
> > I would be grateful:
> > * decouple AS from ActiveRecord, to be usable with other ORM's too (ie
> > Mongoid), maybe by having a pluggable model.column API
>
> Relying on ActiveModel API would do the trick i guess, wouldn't it ?

I don't think it's possible. ActiveScaffold does much with associations, and 
associations aren't ActiveModel API. It needs reflect_on_all_associations and 
check association macro, so that code would be different for each ORM. I will 
try to decouple code related to associations, so a module for Mongoid can be 
developed.

>
> > * thread-safe: no controller writable class variables, maybe by using
> > things like cattr_accessor to have controller level configuration that
> > gets copied to instances on their creation. This would allow thread-
> > safe-per-request configuration tweks instead
> > ofhttp://github.com/activescaffold/active_scaffold/wiki/per-request-con..
> >. (change globals the change them back ...)
>
> Wouldn't that be a significant performance eater ?

I have thought about that, I would like to have proxy configuration models as 
instance variables, which will read class configuration unless you override 
(set) some configuration option. However, I haven't started it and I don't know 
how hard it will be.

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.

Reply via email to