define them in each controller, both blocks will be executed, first block
config
in parent controller and then current controller block config.
class CommonController < ApplicationController
active_scaffold :model do |conf|
...
end
end
class C1Controller < CommonController
active_scaffold :model do |conf|
conf.create.columns = ...
end
end
El lunes, 23 de enero de 2017 3:32:03 (CET) Gloufy escribió:
> great ! but how to have for example config.create.columns=[....] different
> in each controller ?
>
> Le lundi 23 janvier 2017 11:44:25 UTC+1, Sergio Cambra a écrit :
> > I haven't tried, but you can create a common controller and have other
> > controllers inherit from it
> >
> > El domingo, 22 de enero de 2017 5:06:36 (CET) Gloufy escribió:
> > > Hi,
> > >
> > > Does it possible to configure activescaffold in a concern and include it
> >
> > in
> >
> > > different controller ?
> > >
> > > I have different controller which manage the same model but it's very
> >
> > long
> >
> > > to update code in all controller
> > > Hope I m clair
> > >
> > > Thank you for you response
> > >
> > > Gloufy
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.